Skip to content


Edit the proxy-hide-piwik-url how-to #3820

anonymous-piwik-user opened this Issue · 4 comments

3 participants



For get working the proxy hide url, update the how to

in piwik /misc/proxy-hide-piwik-url/piwik.php add

 _paq.push(["setSiteId", "trackedsite-id"]);

with the id of the website to track

 7) You now need to add the modified Piwik Javascript Code to the footer of your pages at 
    Go to Piwik > Settings > Websites > Show Javascript Tracking Code.
    Copy the Javascript snippet. Then, edit this code and change the last lines to the following:
        (function() {
          var u=(("https:" == document.location.protocol) ? "https" : "http") + "://";
          _paq.push(["setSiteId", "trackedsite-id"]);
          _paq.push(["setTrackerUrl", u+"piwik.php"]);
          var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
          g.defer=true; g.async=true; g.src=u+"piwik.php"; s.parentNode.insertBefore(g,s);
      <!-- End Piwik Code -->
Piwik Open Source Analytics member

Thanks for the report. Fixes in master.

Piwik Open Source Analytics member

I also updated the Hide analytics footprint faq

Piwik Open Source Analytics member

In d16c51b: Refs #3820 script links to doc

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.