Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
106 views

I am trying to log page views to my own server using <amp-analytics>, and would like to include various features of the page (title, language, page type and other custom items) as variables in ...
xgretsch's user avatar
  • 1,462
0 votes
1 answer
608 views

i'm wondering how can i integrate amp-analytics with Nextjs project. I saw here that amp-analytics works with GA4 I couldn't find anything regarding amp-analytics and nextjs online. I'm wondering if ...
Singh's user avatar
  • 880
1 vote
0 answers
150 views

Any idea how to track scroll depth for Facebook pixel in AMP Page using amp-analytics? I've tried but still failed to get & show depth parameter, below are my code: { "vars": { ...
questionasker's user avatar
2 votes
0 answers
151 views

We are trying to implement the amp-experiments on the amp-page and connect it with Google Optimize. We follow the instruction in this article — Measure AMP experiments with Optimize. But there is ...
Владислав Балабанович's user avatar
0 votes
1 answer
1k views

I am trying to put amp-analytics script into amp page generated from Next.js, but dangerouslySetInnerHTML breaks JSON config because of & character. Here is the code: <amp-analytics id='...
Владислав Балабанович's user avatar
0 votes
1 answer
321 views

I am trying to replicate an AMP website to gain knowledge. Technical Stack: AWS S3 static hosted website, AWS Cloudfront, AWS EC2, AWS Elastic Beanstalk, Google Accelerated Mobile Pages (AMP), Flask, ...
S.W.'s user avatar
  • 11
1 vote
1 answer
311 views

One can set a custom key name for a AMP HTML cookie by passing it as the first argument to the Client ID analytics variable as in ${clientId(my-custom-cookie)}, where my-custom-cookie is the desired ...
nyedidikeke's user avatar
  • 7,856
0 votes
1 answer
521 views

I am building an AMP website, and I use google analytics for tracking. However I found the utm_campaign, utm_source and utm_medium properties are not working when I migrate my site to AMP, it was ...
Bill Zheng's user avatar
0 votes
1 answer
364 views

I've successfully set up Google Analytics & Google Ads Conversion tracking but we're having some inaccurate data being passed into Google Ads. We have a Conversion Goal in Google Analytics for ...
Matt's user avatar
  • 81
0 votes
1 answer
122 views

I am trying to send some analytics data using amp-analytics component but for some reason, the packet is missing pageViewId64, I am getting pageViewId. Minimal code to test- (Add amp-analytics ...
freesoul's user avatar
  • 244
2 votes
1 answer
602 views

Is it possible to use Google Analytics on AMP (Accelerated Mobile Pages) Pages without cookies? If yes, how should it be configured? Because of the General Data Protection Regulation (EU) 2016/679 (...
Carsten Unger's user avatar
2 votes
0 answers
580 views

I am working with the amp-audio component for a project, and need to be able to set up tags and triggers in Google Tag Manager track when the user plays/pauses the audio, and when the audio completes. ...
Anthony Hessler's user avatar
2 votes
1 answer
1k views

Try to setup google gtag to amp page. But always receive an error: [AmpAnalytics gtag] No triggers were found in the config. No analytics data will be sent. i get example code from https://...
Vladimir Pavlov's user avatar
0 votes
1 answer
605 views

I am trying to fire an event after submit success in AMP. At the moment I use dataLayer.push() and sending: category, action and label. How do i fire the success event with the example from this ...
IlanB's user avatar
  • 11
3 votes
0 answers
483 views

I am trying to implement form lead conversions using amp-analytics and facebook pixel. I found examples on using amp-analtics with facebook pixel here; Github Amp Analytics Vendors However, this ...
Matthew Flynn's user avatar
4 votes
1 answer
1k views

I need to pass the pagePath value dynamically into my amp-analytics tag's var value. Can you please advise how i can achieve this. For example, In the below code snippet , I need to replace the ...
Siva's user avatar
  • 51
2 votes
2 answers
1k views

I have a amp story where I have also implemented tracking with Google Analytics. Events such as story-page-visible are working perfectly. But when I tried to track the click event on an anchor tag ...
Deeksha Agarwal's user avatar
0 votes
1 answer
274 views

An AMP page can be served from google search cache inside an iframe using the amp cache/proxy, or directly from amp cache/proxy, or directly from the page URL. How can I sync the amp-analytics ...
Ayush Gupta's user avatar
1 vote
0 answers
750 views

I've implemented the example for a basic consent flow. However, users still get tracked and ads are still showing even if they opt-out. I had a working cookie notice with <amp-notification>, ...
Skrondgar's user avatar
1 vote
0 answers
147 views

We've set up AMP Analytics tracking via GTM container, but there's no data being tracked/sent to GA. How can we fix this? As per GTM container's installation instructions, in the head tag we have the ...
Violetta's user avatar
0 votes
1 answer
505 views

Background I have AMP page specifically AMP stories working great. Also the analytics is configured as shown bellow. The analytics for basic events like audio, bookend enter and exit, page view ... ...
Dagm Fekadu's user avatar
0 votes
1 answer
158 views

We implemented AMP to our site a couple of months ago. We're tracking visits correct in Google Analytics but the speed dimensions are empty, we have no sample pages measured. How can I get the load ...
MrCester's user avatar
1 vote
0 answers
244 views

I need to track a specific custom event for AMP pages with Google Analytics. I'm using this script https://riveted.parsnip.io/ (a plugin for GA) to calculate active time on single pages of my website....
wdhelp's user avatar
  • 11
1 vote
1 answer
232 views

I have an amp form that will return a json value when I submitted it, and I bind the data into amp-mustache template. The problem is I need to use the amp-analytics to track the view and click inside ...
Salman Warsidi's user avatar
1 vote
1 answer
1k views

I am have been trying for a couple days now to implement Google Analytics using gtag to my AMP page with no luck. I have poured through the Google Developer Docs here: https://developers.google.com/...
knucklehead's user avatar
0 votes
1 answer
161 views

How do you track if a AMP page with PWA is added to Home Screen via Google Analytics ?
Trilochan Satapathy's user avatar
0 votes
3 answers
973 views

I want to add the Facebook Pixels PagesView and ViewContent in my Amp Page. Here is my Code: <amp-analytics type="facebookpixel" id="facebook-pixel"> <script type="application/json"> ...
Mar's user avatar
  • 1
1 vote
1 answer
2k views

I received the following notification in GSC The script tag contains invalid JSON that cannot be parsed." It came up a couple of days after we enabled the linker feature. This is the amp-analytics ...
Charlie C's user avatar
1 vote
1 answer
509 views

I'm using the amp-analytics component in an AMP page to track page views. My request source (the endpoint to send data to) includes a forward slash like so: request.source.com/endpoint AMP doesn't ...
Sam's user avatar
  • 785
0 votes
1 answer
104 views

I have an amp page that I would like to track with our analytics tool. The non amp implementation for the tracking pixel is something like this e.g. var payload = {a:1,b2} var img = document....
spinners's user avatar
  • 2,751
0 votes
1 answer
303 views

I would like to trigger an analytics event after the user has spent 10 seconds on the page. This is the code I'm using > "pageTimer": { > "on": "timer", > "timerSpec": { > ...
Sifro's user avatar
  • 75
1 vote
2 answers
1k views

I want to forward UTM source tracking on all the links on an amp page if UTM is present on the page URL itself. Example: If UTM is present on some page abc.amp?utm_source=someSource then I want to ...
Ankur Aggarwal's user avatar
3 votes
1 answer
227 views

I have added AMP Analytics (amp-analytics) to my AMP Pages like these and the hits are recorded properly on Google Analytics. The only problem is that it is counting all my development work as hits. ...
Sandeep C's user avatar
  • 291
0 votes
1 answer
826 views

Assuming I have a couple of <amp-video> elements and I want to send player events of trigger video-play [https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/amp-video-...
Meschiany's user avatar
  • 225
0 votes
0 answers
135 views

I'm really bad at web in general, but it seems I'm to do a study on AMP :x While I managed to send data in-house using amp-analytics I am also trying to display a "privacy popup" and get the user ...
SeikoTheWiz's user avatar
3 votes
1 answer
411 views

I am trying to integrate adobe analytics in an amp page. But the parameters that I want to pass, I want them to be picked up dynamically using an ajax call. I am picking up the values using an amp-...
Soumya Masani's user avatar
0 votes
1 answer
163 views

I have created AMP enabled blog detail page, it showing valid when checked using development=1. Ie, https://datafloq.com/read/amp/7-industries-where-augmented-reality-making-mark/4567#development=1 ...
Ranju R's user avatar
  • 2,587
0 votes
0 answers
439 views

I am trying to fire a tracking event when an option is selected inside a <select> tag. With amp-analytics I am able to send a click tracking event when an element is clicked, but only with ...
Rex's user avatar
  • 35
1 vote
2 answers
601 views

I am attempting to track Bing Ad events using the Bing Universal Event Tracking code inside a Google Amp ready webpage. The Bing solution is to use a javascript function. This is similar to the ...
Bruce's user avatar
  • 119
3 votes
1 answer
608 views

I've implemented a small experiment on an AMP site following this tutorial: https://developers.google.com/optimize/devguides/amp-experiments Here's what I've done: 1. amp-analytics and amp-...
Silver Ringvee's user avatar
0 votes
4 answers
655 views

in the normal facebook pixel analytics we ViewContent event. is there a way to replicate this functionality in amp. <amp-analytics type="facebookpixel" id="facebook-pixel"> <...
Jayesh Bafna's user avatar
1 vote
1 answer
1k views

I implemented AMP pages and they are indexed with no errors and appear in Google search. When a visitor clicks on a link on Google SERP then they appear on Google Analytics (including cached pages) as ...
Alex Kudryashev's user avatar
0 votes
1 answer
1k views

I'm trying to figure out if I can push a click event from AMP to GTM. From what I've seen, the only option is to setup events in GTM to watch for the clicks because GTM creates the triggers(?). I don'...
Jason Lydon's user avatar
  • 7,220
0 votes
1 answer
372 views

I use PWA with AMP. I want to track users that clicked to Add To Homescreen button, but AMP doesnt allow custom javascripts. I use amp-analytics component. How can i trigger on PWA's "...
KadirCanerErgun's user avatar
0 votes
0 answers
167 views

We've just added amp-analytics to our amphtml pages. Also we've added amp-ad (adsense). At "Google Analytics" account we receive pageviews stats but on the Publisher-Overview section we got zero stats....
DmitryMotorin's user avatar
1 vote
1 answer
769 views

I am trying to make our ad-network integration to amp now. So I am troubled with the in-view tracking method of amp-ad. If anyone has a good solution, would you please help me? Our ad-network works ...
i02302's user avatar
  • 41
1 vote
2 answers
257 views

If I pass a string value containing () to the vars property in the <amp-analytics> component, the string is truncated due to the regex in the getNameArgs_ string method. Eg: Passing the user ...
Glo 's user avatar
  • 604
1 vote
2 answers
667 views

I'm trying to send a custom page name (page url) to Google Analytics from an AMP page. Normally I would send the custom page name like this: ga('send', 'pageview', {'page': 'myPageName'}); But amp-...
ibhhvc's user avatar
  • 265
0 votes
1 answer
279 views

Looking at google's AMP documentation, seems like clientID is a great way to store a unique user id. But how can I translate that through my regular non amp page? If a user sees an AMP page and got a ...
emphaticsunshine's user avatar