Title: impossible activate AMP &#8211; Json googleanalytics
Last modified: March 15, 2019

---

# impossible activate AMP – Json googleanalytics

 *  Resolved [ghezzicharlye](https://wordpress.org/support/users/ghezzicharlye/)
 * (@ghezzicharlye)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/impossible-activate-amp-json-googleanalytics/)
 * I tried to activate the function in AMP for googleanalytics, but there is nothing
   to do, from an error in the JSON code entry form
    …. the system answer….. Unexpected
   token < in Json 0
 * are hours that I try everything … does not work
 * ———————————————————
    <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);
   <amp-analytics type=”gtag” data-credentials=”include”> <script type=”application/
   json”> { “vars” : { “gtag_id”: “<GA_MEASUREMENT_ID>”, “config” : { “<GA_MEASUREMENT_ID
   >”: { “groups”: “default” } } } } </script> </amp-analytics>

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/impossible-activate-amp-json-googleanalytics/#post-11319689)
 * Do not include the `<script>` tags. Only include the part starting from `{` and
   ending with `}`
 *  [lifeadvancer](https://wordpress.org/support/users/lifeadvancer/)
 * (@lifeadvancer)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/impossible-activate-amp-json-googleanalytics/#post-11375483)
 * Hello, I’m trying to add analytics on our AMP too. My website is [https://www.lifeadvancer.com](https://www.lifeadvancer.com)
   if you want please check the google analytics code on one of our articles.
 * the code seems fine, but still can’t see visitors or even my visits. No HTML 
   in the box, cache cleaned. Any ideaS??
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/impossible-activate-amp-json-googleanalytics/#post-11381097)
 * [@lifeadvancer](https://wordpress.org/support/users/lifeadvancer/) I don’t see
   AMP being used on your site. Please open a new support topic and provide the 
   URL to an AMP page that has `<amp-analytics>` present.
 *  [lifeadvancer](https://wordpress.org/support/users/lifeadvancer/)
 * (@lifeadvancer)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/impossible-activate-amp-json-googleanalytics/#post-11398245)
 * Hi there Weston….. It really took so long, and we decided to disable AMP again.
 * I m really sorry 🙁 but we couldn’t make it work.

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

The topic ‘impossible activate AMP – Json googleanalytics’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [lifeadvancer](https://wordpress.org/support/users/lifeadvancer/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/impossible-activate-amp-json-googleanalytics/#post-11398245)
 * Status: resolved