Support » Plugin: WP-Piwik » How to modify the tracking code?

  • Resolved emartos

    (@emartos)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    (@braekling)

    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

    New to Piwik

    Plugin Author braekling

    (@braekling)

    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.