[resolved] How to modify the tracking code? (4 posts)

  1. emartos
    Posted 3 years ago #

    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!


  2. emartos
    Posted 3 years ago #

    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.

  3. braekling
    Plugin Author

    Posted 3 years ago #

    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.


  4. braekling
    Plugin Author

    Posted 3 years ago #

    Option added in

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Piwik
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic