Title: AMP Analytics Options
Last modified: March 3, 2018

---

# AMP Analytics Options

 *  Resolved [lauratraveler](https://wordpress.org/support/users/lauratraveler/)
 * (@lauratraveler)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/amp-analytics-options/)
 * Hi,
 * How do you use the ‘AMP Analytics Options’ option with Google Analytics?
 * Thanks,
    Laura

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/amp-analytics-options/#post-10036440)
 * See [https://github.com/Automattic/amp-wp/wiki/Analytics](https://github.com/Automattic/amp-wp/wiki/Analytics)
 * And then see [https://developers.google.com/analytics/devguides/collection/amp-analytics/](https://developers.google.com/analytics/devguides/collection/amp-analytics/)
 *  Thread Starter [lauratraveler](https://wordpress.org/support/users/lauratraveler/)
 * (@lauratraveler)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/amp-analytics-options/#post-10036686)
 * Thanks! Does this code come installed with the plugin or do I have to add it 
   somewhere?
 *     ```
       <script async custom-element="amp-analytics"
           src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
       ```
   
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/amp-analytics-options/#post-10038172)
 * That will automatically be added by the plugin when you configure analytics in
   the admin.
 *  [Lonifasiko](https://wordpress.org/support/users/lonifasiko/)
 * (@lonifasiko)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/amp-analytics-options/#post-10063800)
 * Hi Laura and Weston,
 * I was manually adding the Analytics related code in the single.php file under
   AMP plugin files, but I’ve seen in the last version that file’s structure has
   slightly changed. So I’ve finally opted for adding the simplest Analytics option
   via the admin menu you mention here. Hope everything works fine also this way,
   thanks guys!
 *  [otiss](https://wordpress.org/support/users/otiss/)
 * (@otiss)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/amp-analytics-options/#post-10125160)
 * Hi All,
 * In JavaScript code I can add this line to track user time, exactly change Bounce
   Rate counting from Page Views to time on the website:
 *  setTimeout(“_gaq.push([‘_trackEvent’, ’15_seconds’, ‘read’])”,15000);
 * I have a question how to switch it to Json format ?
 * And My Second Question is, Can I prepare similar Json File for another Analytics
   method like StatCounter ?
 * Regards,
    -  This reply was modified 8 years, 2 months ago by [otiss](https://wordpress.org/support/users/otiss/).
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/amp-analytics-options/#post-10139173)
 * [@otiss](https://wordpress.org/support/users/otiss/) This would be a better question
   for the Google Analytics support forums, specifically in regards to the supported
   AMP interactions: [https://developers.google.com/analytics/devguides/collection/amp-analytics/#supported_user_interactions_for_google_analytics](https://developers.google.com/analytics/devguides/collection/amp-analytics/#supported_user_interactions_for_google_analytics)

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

The topic ‘AMP Analytics Options’ 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/)

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