Title: AMP Tracking?
Last modified: July 9, 2017

---

# AMP Tracking?

 *  [Marc Tönsing](https://wordpress.org/support/users/marcdk/)
 * (@marcdk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/amp-tracking/)
 * Hi!
 * Are you planning to support AMP? [https://github.com/Automattic/amp-wp/blob/master/readme.md#analytics](https://github.com/Automattic/amp-wp/blob/master/readme.md#analytics)

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

 *  Thread Starter [Marc Tönsing](https://wordpress.org/support/users/marcdk/)
 * (@marcdk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/amp-tracking/#post-9302635)
 * I found this in gitgub: [https://gist.github.com/tiefenb/50041bb1f99762587e0b](https://gist.github.com/tiefenb/50041bb1f99762587e0b)
 * I could put this snippet in the amp templates of my theme.
 * `<amp-pixel src="https://piwik.example.org/piwik.php?idsite=YOUR_SITE_ID&rec=
   1&action_name=TITLE&urlref=DOCUMENT_REFERRER&url=CANONICAL_URL&rand=RANDOM"></
   amp-pixel>`
 * Is there an easy way to get the current Piwik siteID? Something like this in 
   my templates? Does this exists?
 * `<?php getPiwikSiteID(); ?>`
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/amp-tracking/#post-9303158)
 * AMP: [https://wordpress.org/support/topic/add-support-for-amp-official-wp-plugin/](https://wordpress.org/support/topic/add-support-for-amp-official-wp-plugin/)
   
   Site ID: [https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/](https://wordpress.org/support/topic/how-can-i-get-the-current-wp-piwik-site-id/)
 *  Thread Starter [Marc Tönsing](https://wordpress.org/support/users/marcdk/)
 * (@marcdk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/amp-tracking/#post-9304074)
 * Hi,
 * thank you. But I think you are wrong about piwik as an offical analytics tool.
   It is the other way round: Piwik has to support AMP to get listed on that page.
   So if you would build AMP functionality into this plugin my guess would be that
   piwik gets listed.
 *  Thread Starter [Marc Tönsing](https://wordpress.org/support/users/marcdk/)
 * (@marcdk)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/amp-tracking/#post-9304220)
 * We could just add support for piwik here:
 * [https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/0.1/vendors.js](https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/0.1/vendors.js)
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/amp-tracking/#post-9323940)
 * I only manage the WordPress plugin to integrate Piwik. So adding or registering
   Piwik as official analytics tool should be done by the Piwik team – I don’t think
   it’s intended to mark a tool as “official” just because a WordPress plugin offers
   support. 😉
 * You can join the Piwik team’s discussion here: [https://github.com/piwik/piwik/issues/10539](https://github.com/piwik/piwik/issues/10539)

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

The topic ‘AMP Tracking?’ is closed to new replies.

 * ![](https://ps.w.org/wp-piwik/assets/icon-256x256.png?rev=3529668)
 * [Connect Matomo - Analytics Dashboard for WordPress](https://wordpress.org/plugins/wp-piwik/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-piwik/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-piwik/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-piwik/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-piwik/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-piwik/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/amp-tracking/#post-9323940)
 * Status: not resolved