• Resolved rahulprashant

    (@rahulprashant)


    On my site, I am using the below-mentioned analytics code on my amp post page

    {
    “vars”: {
    “account”: “UA-178289594-1”
    },
    “triggers”: {
    “trackPageview”: {
    “on”: “visible”,
    “request”: “pageview”
    }
    }
    }

    But this code is not working on my site amp version post-https://learnforget.com/pradhan-mantri-ayushman-bharat-yojana/amp/
    Can any one let me know whats wrong here?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Milind More

    (@milindmore22)

    Our Initial investigation suggest that you are not using a valid type attribute like type=”googleanalytics” you can refer this guide to add analytics properly,

    Alternatively, The Site Kit plugin is a great way to ensure Google tracking scripts/ tags (including those for Analytics) get applied to AMP and non-AMP pages.

    Thread Starter rahulprashant

    (@rahulprashant)

    Thank you i have installed site kit plugin, and now analytics is working properly on my site.

    Plugin Support Milind More

    (@milindmore22)

    Good to know the Site kit plugin helped. I will mark this as resolved, feel free to open a new topic if you need help implementing The AMP plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Amp analytics code is not working’ is closed to new replies.