Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
anonymous-piwik-user opened this Issue · 4 comments

3 participants

Anonymous Piwik user Fabian Becker Matthieu Aubry
Anonymous Piwik user

Hi,

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 http://trackedsite.com/ 
    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") + "://trackedsite.com/";
          _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);
        })();
      </script>
      <!-- End Piwik Code -->
Fabian Becker
Collaborator

Thanks for the report. Fixes in master.

Matthieu Aubry
Owner

I also updated the Hide analytics footprint faq

Matthieu Aubry
Owner

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.