• ASocialNomad

    (@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”
    }
    }
    }
    </script>
    </amp-analytics>

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Analytics Code for AMP not tracking AMP traffic’ is closed to new replies.