Title: Amp analytics code is not working
Last modified: November 8, 2020

---

# Amp analytics code is not working

 *  Resolved [rahulprashant](https://wordpress.org/support/users/rahulprashant/)
 * (@rahulprashant)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/amp-analytics-code-is-not-working/)
 * 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/](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-analytics-code-is-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/amp-analytics-code-is-not-working/#post-13638648)
 * Our Initial investigation suggest that you are not using a valid **type** attribute
   like `type=”googleanalytics”` you can refer [this guide](https://amp-wp.org/documentation/getting-started/analytics/)
   to add analytics properly,
 * Alternatively, The [Site Kit plugin](https://wordpress.org/plugins/google-site-kit/)
   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](https://wordpress.org/support/users/rahulprashant/)
 * (@rahulprashant)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/amp-analytics-code-is-not-working/#post-13639415)
 * Thank you i have installed site kit plugin, and now analytics is working properly
   on my site.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/amp-analytics-code-is-not-working/#post-13643514)
 * 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.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Milind More](https://wordpress.org/support/users/milindmore22/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/amp-analytics-code-is-not-working/#post-13643514)
 * Status: resolved