Title: Google Analytics not tracking AMP
Last modified: June 6, 2020

---

# Google Analytics not tracking AMP

 *  Resolved [tlcinteriors](https://wordpress.org/support/users/thelifecreative/)
 * (@thelifecreative)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-not-tracking-amp/)
 * Tracking was working until a week ago but now GA is showing no traffic from AMP
   pages.
 * I’ve confirmed AMP is still working, eg: [https://www.tlcinteriors.com.au/inside-homes/chic-city-apartment-melbourne/amp](https://www.tlcinteriors.com.au/inside-homes/chic-city-apartment-melbourne/amp)
 * The tracking code is still installed:
 *     ```
       {
           "vars": {
               "account": "UA-44809576-1"
           },
           "triggers": {
               "trackPageview": {
                   "on": "visible",
                   "request": "pageview"
               }
           }
       ```
   
 * I use Litespeed Cache and I noticed a thread about it adding comments to the 
   HTML that caused issues, but I can’t see that it is doing that to my site.
 * The SEO plugin I use is SEO Framework and I have their AMP extension installed.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-analytics-not-tracking-amp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Renee Johnson](https://wordpress.org/support/users/reneesoffice/)
 * (@reneesoffice)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-not-tracking-amp/#post-12946111)
 * [@thelifecreative](https://wordpress.org/support/users/thelifecreative/) thanks
   for your topic! I’m not totally sure if this is the cause, but I notice the `
   type` attribute in the code on your AMP post is missing an `a` in `googleanalytics`(
   [screenshot](https://jmp.sh/31fX96U)). There is a field to input this in the 
   settings under _AMP > Analytics_.
 *  Thread Starter [tlcinteriors](https://wordpress.org/support/users/thelifecreative/)
 * (@thelifecreative)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-not-tracking-amp/#post-12946169)
 * Good pickup. I’ve fixed that but I don’t think it was the issue.
 *  Thread Starter [tlcinteriors](https://wordpress.org/support/users/thelifecreative/)
 * (@thelifecreative)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-not-tracking-amp/#post-12946174)
 * Actually…it’s working now. I guess it was the issue. Something so simple, thankyou!

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

The topic ‘Google Analytics not tracking AMP’ 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: [tlcinteriors](https://wordpress.org/support/users/thelifecreative/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/google-analytics-not-tracking-amp/#post-12946174)
 * Status: resolved