49 questions
1
vote
0
answers
106
views
How to pass parameters in the body of an xmlHttpRequest post?
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 ...
0
votes
1
answer
608
views
Nextjs: how to integrate google analytics in amp pages
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 ...
1
vote
0
answers
150
views
How to track scroll depth of Facebook Pixel in AMP page using amp-analytics?
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": {
...
2
votes
0
answers
151
views
Google Optimize installation on AMP page: Not verified
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 ...
0
votes
1
answer
1k
views
React dangerouslySetInnerHTML breaks JSON config with & character
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='...
0
votes
1
answer
321
views
How to dynamically show or hide html based on a server's response
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, ...
1
vote
1
answer
311
views
How to make AMP HTML cookies UUID version 4 compliant
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 ...
0
votes
1
answer
521
views
Google UTM Campaign Tracking in AMP amp-analytics
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 ...
0
votes
1
answer
364
views
Google Ads Conversion Tracking only firing on some Leads from AMP HTML
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 ...
0
votes
1
answer
122
views
amp analytics missing pageviewId64
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 ...
2
votes
1
answer
602
views
Google Analytics on AMP-Pages without cookies
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 (...
2
votes
0
answers
580
views
AMP Audio: Track Play/Pause/Complete and Capture in Google Tag Manager
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. ...
2
votes
1
answer
1k
views
(gtag) for AMP No triggers were found in the config. No analytics data will be sent
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://...
0
votes
1
answer
605
views
Fire google amp-analytics event in an amp page when amp-form submit success
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 ...
3
votes
0
answers
483
views
amp-analytics to track Facebook Pixel lead events
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 ...
4
votes
1
answer
1k
views
How to pass dynamic values to <amp-analytics> var
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 ...
2
votes
2
answers
1k
views
How can we track click on link tags inside amp story pages
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 ...
0
votes
1
answer
274
views
How to sync CLIENT_ID across different serving methods of amp pages?
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 ...
1
vote
0
answers
750
views
Issues implementing amp-consent
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>, ...
1
vote
0
answers
147
views
How to fix AMP analytics tracking via GTM
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 ...
0
votes
1
answer
505
views
How to send AMP Analytics in AMP story for links in bookend json
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 ... ...
0
votes
1
answer
158
views
How to measure speed in Google Analytics for AMP pages?
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 ...
1
vote
0
answers
244
views
tracking event for amp page with GA
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....
1
vote
1
answer
232
views
How to implement amp-analytics view tracker inside a mustache template after submitting a form
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 ...
1
vote
1
answer
1k
views
Global Site Tag (gtag) for AMP Not Firing
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/...
0
votes
1
answer
161
views
Track PWA events in Google AMP + PWA ( PWAMP)
How do you track if a AMP page with PWA is added to Home Screen via Google Analytics ?
0
votes
3
answers
973
views
Facebookpixel ViewContent in AMP Pages
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">
...
1
vote
1
answer
2k
views
AMP-Linker - The script tag contains invalid JSON that cannot be parsed
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 ...
1
vote
1
answer
509
views
AMP Analytics Source with Slash in URL
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 ...
0
votes
1
answer
104
views
Amp analytics encodeURIComponent for tracking pixel
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....
0
votes
1
answer
303
views
Timer triggered twice in amp-analytics
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": {
> ...
1
vote
2
answers
1k
views
UTM Source Forwading on all links on AMP Page
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 ...
3
votes
1
answer
227
views
Is there a way to stop AMP Analytics counting development work as hits?
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. ...
0
votes
1
answer
826
views
how to send variable on video event on amp page
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-...
0
votes
0
answers
135
views
Managing privacy choices with amp-analytic
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 ...
3
votes
1
answer
411
views
how can I structure amp-analytics json iframeMessage with dynamic values?
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-...
0
votes
1
answer
163
views
AMP tags are valid(using validater.js and chrome plugin) but failing when testing in google AMP test
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 ...
0
votes
0
answers
439
views
AMP: track which option was selected with amp-analytics
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 ...
1
vote
2
answers
601
views
Is there an AMP function equavlent to amp-analytics for Bing Universal Event Tracking?
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 ...
3
votes
1
answer
608
views
amp-experiment info not visible in GA or Google Optimize
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-...
0
votes
4
answers
655
views
viewContent event in AMP-pixel
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">
<...
1
vote
1
answer
1k
views
Google analytics shows clicks from cached amp pages as direct/none
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 ...
0
votes
1
answer
1k
views
Is it possible to push triggers from the amp-analytics tag to GTM?
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'...
0
votes
1
answer
372
views
Add to homescreen Event On Amp Analytics
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 "...
0
votes
0
answers
167
views
Amp-analytics issue
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....
1
vote
1
answer
769
views
How do I pass dynamic parameters from amp-ad to amp-analytics?
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 ...
1
vote
2
answers
257
views
AMP-analytics: Passing useragent is truncated due to getNameArgs method
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 ...
1
vote
2
answers
667
views
How to rewrite page name (url) reported by amp-analytics in Google AMP?
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-...
0
votes
1
answer
279
views
Connecting user from AMP to nonAMP pages
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 ...