Support » Plugin: Glue for Yoast SEO & AMP » Analytics Code for AMP not tracking AMP traffic

  • ASocialNomad


    I’m using Yoast 6.3.1 plus Yoast glue. I use the AMP by Automattic plugin and 10+% of my traffic is from AMP. I’m trying to therefore get specific analytics on that traffic.

    I’ve pasted the following code into the ANALYTICS tab on the AMP part of Yoast (and after altering the quotes to be “plain” it now no longer disappears. HOwever, I’m still not seeing any content in the AMP specific part of GA. Any suggestions as to how I can check this further? Or should I be looking to insert the tracking code outside of Yoast?

    Paste of the code use – with my tracking code XXXX’d out.

    <amp-analytics type=”googleanalytics”>
    <script type=”application/json”>
    “vars”: {
    “account”: “XXXXXXXXXX”
    “trigger”: {
    “trackPageview”: {
    “on”: “visible”,
    “request”: “pageview”

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • WebFactory


    I can confirm this. Has this bug been documented and on the to-do list?

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.