Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author braekling

    (@braekling)

    The code in WP-Piwik is not editable, because it is delivered by Piwik itself.

    What do you want to change in your noscript code?

    If you like to use your own scrips/ your own noscript code, just disable adding it and put your own code in your templates footer file.

    Thread Starter monk3

    (@monk3)

    We were wanting to add the code as presented on the Piwik page: https://piwik.org/faq/how-to/#faq_176. It states:
    “You can however configure Piwik to also track users with Javascript disabled: to do so, edit the Piwik Tracking Tag <noscript> and change:
    <noscript><p><img src="https://piwik-server.com/piwik.php?idsite=1" style="border:0" alt="" /></p></noscript>
    Replace with the following:
    <noscript><p><img src="https://piwik-server.com/piwik.php?idsite=1&rec=1" style="border:0" alt="" /></p></noscript>
    After making this change and adding &rec=1, visitors with disabled Javascript will execute the noscript and will load the piwik.php image and will have their traffic recorded in Piwik.

    Note: the most famous bots will still be ignored with this technique. To force Piwik to track all bots, add the parameter &bots=1 to the tracking URL, eg:
    <noscript><p><img src="https://piwik-server.com/piwik.php?idsite=1&rec=1&bots=1" style="border:0" alt="" /></p></noscript>

    Therefore, that is what we were attempting to do, according to their well-written instructions.

    Apparently, your plugin is not concurrent with the apps instruction set, and at the least is lacking in adequate instruction.

    Plugin Author braekling

    (@braekling)

    And why don’t you just enable the plugin’s option to add rec=1 in its tracking settings?

    It is named as

    Add rec parameter to noscript code

    and described as

    Enable tracking for visitors without JavaScript (not recommended). See Piwik FAQ. Disabled in proxy mode.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Editing the noscript code’ is closed to new replies.