Title: How to modify the tracking code?
Last modified: August 21, 2016

---

# How to modify the tracking code?

 *  Resolved [emartos](https://wordpress.org/support/users/emartos/)
 * (@emartos)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/how-to-modify-the-tracking-code/)
 * Hi there!
 * I need to modify the tracking code (specifically the <noscript> part) to add 
   the &rec=1 parameter and track visits of users with JavaScript disabled. Both
   textareas (tracking code and <noscript> code) are disabled because these are 
   previews.
 * I’ve checked Piwik and WP-Piwik settings with no luck. Do I have to dive into
   the code of WP-Piwik and write a hack?
 * Thank you in advance!
 * [http://wordpress.org/extend/plugins/wp-piwik/](http://wordpress.org/extend/plugins/wp-piwik/)

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

 *  Thread Starter [emartos](https://wordpress.org/support/users/emartos/)
 * (@emartos)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/how-to-modify-the-tracking-code/#post-3685770)
 * I have inserted the <noscript> code manually at the footer and it works, but 
   it’s not the right fix. The problem is the <noscript> code inserted by WP-Piwik
   hasn’t the &rec=1 parameter.
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/how-to-modify-the-tracking-code/#post-3685966)
 * Currently there is no option to add this parameter using WP-Piwik. WP-Piwik uses
   the tracking code delivered by Piwik itself.
 * Fast solution: Disable WP-Piwik’s tracking code and put your individual tracking
   code manually to your site’s header and footer.
 * Please keep in mind the Piwik team removed rec=1 intentionally, because you will
   also track bots by activating this.
 * [http://dev.piwik.org/trac/ticket/2490](http://dev.piwik.org/trac/ticket/2490)
   
   [http://piwik.org/faq/new-to-piwik/#faq_63](http://piwik.org/faq/new-to-piwik/#faq_63)
 *  Plugin Author [braekling](https://wordpress.org/support/users/braekling/)
 * (@braekling)
 * [13 years ago](https://wordpress.org/support/topic/how-to-modify-the-tracking-code/#post-3686027)
 * Option added in 0.9.9.4

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

The topic ‘How to modify the tracking code?’ 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/)

## Tags

 * [javscript](https://wordpress.org/support/topic-tag/javscript/)
 * [noscript](https://wordpress.org/support/topic-tag/noscript/)

 * 3 replies
 * 2 participants
 * Last reply from: [braekling](https://wordpress.org/support/users/braekling/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/how-to-modify-the-tracking-code/#post-3686027)
 * Status: resolved