Title: amp-analytics
Last modified: August 30, 2019

---

# amp-analytics

 *  Resolved [snottyscotty](https://wordpress.org/support/users/snottyscotty/)
 * (@snottyscotty)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/)
 * I set up a separate container in Tag Manager with settings for AMP. I tried several
   places including the Analytics settings in the plugin. The plugin strips the 
   code out no matter where I put it in.

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/#post-11897256)
 * what are you inputting and which setting to be precise?
 * Please share me those details, so I can check and re-create on my end and help
   you fix it.
 *  Thread Starter [snottyscotty](https://wordpress.org/support/users/snottyscotty/)
 * (@snottyscotty)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/#post-11900246)
 * On Advance tab:
 * Enter HTML in Head
    <!– AMP Analytics –><script async custom-element=”amp-analytics”
   src=”[https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script&gt](https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script&gt);
 * Enter HTML in Body (beginning of body tag)
    <!– Google Tag Manager –> <amp-analytics
   config=”[https://www.googletagmanager.com/amp.json?id=GTM-XXXXXX&gtm.url=SOURCE_URL&#8221](https://www.googletagmanager.com/amp.json?id=GTM-XXXXXX&gtm.url=SOURCE_URL&#8221);
   data-credentials=”include”></amp-analytics>
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/#post-11903010)
 * Why are you adding the analytics that way? we already have an option for it?
 * In your code, the id is GTM-XXXXXX
 * Can you share the screenshots of the settings?
 *  Thread Starter [snottyscotty](https://wordpress.org/support/users/snottyscotty/)
 * (@snottyscotty)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/#post-11907069)
 * I think the problem was me. I think it is fixed. Thank you.
    -  This reply was modified 6 years, 8 months ago by [snottyscotty](https://wordpress.org/support/users/snottyscotty/).
    -  This reply was modified 6 years, 8 months ago by [snottyscotty](https://wordpress.org/support/users/snottyscotty/).
 *  Thread Starter [snottyscotty](https://wordpress.org/support/users/snottyscotty/)
 * (@snottyscotty)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/#post-11907087)
 * .
    -  This reply was modified 6 years, 8 months ago by [snottyscotty](https://wordpress.org/support/users/snottyscotty/).

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

The topic ‘amp-analytics’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [snottyscotty](https://wordpress.org/support/users/snottyscotty/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/amp-analytics-4/#post-11907087)
 * Status: resolved