GA4 on AMP

Posted in: Newspaper
Post count: 124

Hi,

Is there any instruction on how to add a new Google Analytics (GA4) to the AMP pages (using Mobile theme)?

Mobile theme currently says code needs to be like this:
“{
“vars”:{
“account”:”UA-123456789-1″
},
“triggers”:{
“trackPageview”:{
“on”:”visible”,
“request”:”pageview”
}
}
}”

Is this still correct?

Thank you.

  • This topic was modified 3 years by Alex.
Post count: 21065

Hello @Alex!

The triggers can be set in the Google Tag Manager. There is a special field for Google Analytics (theme panel>analitics/js code) and you do not need to add the code in the multiple fields.

Thank you!

Post count: 124

Hi @Bettina,

Thank you for your response.

The question is about Google Analytics for AMP via Mobile Theme.

I believe your answer is related to desktop.

– Is the code (below), shown by TagDiv as an example in Mobile Theme >> AMP Analytics still current?

“{
“vars”:{
“account”:”UA-123456789-1
},
“triggers”:{
“trackPageview”:{
“on”:”visible”,
“request”:”pageview”
}
}
}”

Post count: 21065

Hello @Alex!

This issue has been discussed here: https://forum.tagdiv.com/topic/google-analytics-4-ga4-for-amp-pages/

Thank you!

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