Google Analytics with AMP
-
I read here:
https://www.sitepoint.com/an-introduction-to-googles-accelerated-mobile-pages-amp/
That Google Analytics can track AMP pages.
Supposedly, this is the code:
<amp-pixel src="https://ssl.google-analytics.com/collect?v=1 &tid=UA-12345678-1&t=pageview&cid=__CID__ &dt=__PAGE_TITLE__&dl=__PAGE_URL__ &z=__RANDOM_STRING__"> </amp-pixel>
But I don’t know what to put in the CID, PAGE_TITLE, PAGE_URL, and RANDOM_STRING sections.
Any php experts able to help with this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Google Analytics with AMP’ is closed to new replies.