AMP and Google Analytics GA4

Posted in: Newsmag
Post count: 312

good morning. happy 2025.
I’m assigning Google Analytics codes in the AMP plugin and Mobile Theme dashboard – and I can’t track the pages that are reported via AMP.
Could you help me?

{
“vars”: {
“account”: “MY CODE”
},
“triggers”: {
“trackPageview”: {
“on”: “visible”,
“request”: “pageview”
}
}
}

Post count: 312
Post count: 9544

considering Google abandoned AMP two years ago, 2025 a good time to move on

Post count: 20685

Hi,

What if you add the analytics code directly in the AMP plugin, in the analytics section https://prnt.sc/iMdyrKndUb9n

Alternatively you could use a plugin like this one https://wordpress.org/plugins/amp-google-analytics-4-support/ or the Site kit plugin from Google.

One of these methods should work.

Thank you!

Post count: 312

thanks, simchris and simion

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.