WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. emartos
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/wp-piwik/

  2. emartos
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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.

    http://dev.piwik.org/trac/ticket/2490
    http://piwik.org/faq/new-to-piwik/#faq_63

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Option added in 0.9.9.4

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic