Title: Matomo/Piwik Error
Last modified: January 13, 2020

---

# Matomo/Piwik Error

 *  Resolved [omar1000](https://wordpress.org/support/users/omar1000/)
 * (@omar1000)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/)
 * Hello,
    since the last 2 or 3 versions I have problems with my Matomo Tracking,
   even error on validating.
 * The preinstalled Version of your plugin generates a wrong matomo script:
 * `{"triggers":{"trackPageview":{"on":"visible","request":"pageview"}},"requests":{"
   base":"https://piwik.example.org/piwik.php?idsite=https%253A%252F%252F...`
 * there is hard written [https://piwik.example.org/piwik.php](https://piwik.example.org/piwik.php)
   and not my site?
    so tracking can’t work.
 * Any idea?
    Thx Omar
    -  This topic was modified 6 years, 5 months ago by [omar1000](https://wordpress.org/support/users/omar1000/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmatomo-piwik-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/#post-12319308)
 * We checked your issue. There are two methods are used for addPiwic to AMP pages.
   One is <amp-pixel> and another is <amp-analytics>. In our plugin using <amp-analytics
   >.
    Reference: [https://forum.matomo.org/t/how-to-add-piwik-to-amp-pages/18424/5](https://forum.matomo.org/t/how-to-add-piwik-to-amp-pages/18424/5)
   There are no issues using this same method for other users. Are you getting any
   error using this method?
 *  Thread Starter [omar1000](https://wordpress.org/support/users/omar1000/)
 * (@omar1000)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/#post-12319437)
 * I also tried <amp-pixel>, put it into the footer…
 * The result
    Error: duplicate definition “amp-pixel” custom-elements.js:332:12
 *  Thread Starter [omar1000](https://wordpress.org/support/users/omar1000/)
 * (@omar1000)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/#post-12319459)
 * Before the updates i worked only with <amp-pixel> without any problems
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/#post-12319545)
 * It’s fixed in the latest version, try to update to 1.0.13.
 * I checked your code, it’s still served in 1.0.12
 * If you have updated to latest version then try to clear the server cache.
 *  Thread Starter [omar1000](https://wordpress.org/support/users/omar1000/)
 * (@omar1000)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/#post-12319567)
 * Perfect, now it is working proper!
 * (only 2 warnings: [DOM] Found 2 elements with non-unique id #amp-search-submit)
 * Thumb up!

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

The topic ‘Matomo/Piwik Error’ 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/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [piwik](https://wordpress.org/support/topic-tag/piwik/)

 * 5 replies
 * 2 participants
 * Last reply from: [omar1000](https://wordpress.org/support/users/omar1000/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/matomo-piwik-error/#post-12319567)
 * Status: resolved