AMP: showing Analytics code in pages, but not in posts…

Posted in: Newspaper
Post count: 6

Hi! I’m trying to track my website http://www.officina.news in mobile version (AMP), but I can’t display Google Analytics code.
I think I’ve pasted the right code in Theme settings – Mobile Theme – AMP Analytics (because I can see it with Analytics while browsing categories).
{
“vars”: {
“account”: “UA-XXXXXXXXX-1”
},
“triggers”: {
trackpageview”: {
“on”: “visible”,
“request”: “pageview”,
}
}
}

What’s wrong with the website?
Thanks!

Andrea

Post count: 21065

Hello!

In order to avoid misunderstandings, please provide more information about the issue, screenshots or a video in order to help you efficiently.

A solution for sending a screenshot/video is this:
Download, capture, send: https://www.techsmith.com/jing-tool.html
After making the screenshot, you will have a link, paste it here.

Thank you!

Post count: 6

Hi Bettina!
I don’t know why, but now it’s working fine… -_-‘
I’m looking my website from a smartphone and a PC (with /?amp=1) and I’m able to track both with Analytics.
A WordPress’ mistery! 😀
Thanks,

Andrea

Post count: 21065

Hello Andrea!

I’m glad that the problem is solved now!
Maybe it was a cache issue.

Thank you!

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