Opened 14 months ago

Closed 14 months ago

Last modified 14 months ago

#3820 closed Bug (fixed)

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

Reported by: toniob Owned by: Fabian Becker
Priority: normal Milestone:
Component: Documentation Keywords:
Cc: Sensitive: no



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 -->

Change History (4)

comment:1 Changed 14 months ago by Fabian Becker

  • Owner set to Fabian Becker
  • Resolution set to fixed
  • Status changed from new to closed

comment:2 Changed 14 months ago by halfdan

Thanks for the report. Fixes in master.

Note: See TracTickets for help on using tickets.