How to Add Google Analytics Code in AMP Analytics?

Posted in: Newspaper
Post count: 14

How to Add Google Analytics Code in AMP Analytics?
……………………………………………………..
According to a YouTube tutorial, I added that code to the AMP Analytics section, replacing my tracking ID. Is Google Analytics properly set up for my AMP pages?
this is the code
…………………………………………………..
{
“vars”: {
“account”: “UA-000000000-0”
},
“triggers”: {
“trackPageview”: {
“on”: “visible”,
“request”: “pageview”
}
}
}
……………………………………………………….

Post count: 35449

Hi,

You need to set up a Tracking code from Google -> https://support.google.com/analytics/answer/6086097?hl=en after that please make sure that you code have the form from our example.
-> https://www.screencast.com/t/aFUzPhNPr8

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.