Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anonymous-matomo-user opened this issue Mar 13, 2013 · 4 comments
Closed

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

anonymous-matomo-user opened this issue Mar 13, 2013 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@anonymous-matomo-user
Copy link

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 -->
@anonymous-matomo-user
Copy link
Author

In abe2512: fixes #3820

@halfdan
Copy link
Member

halfdan commented Mar 13, 2013

Thanks for the report. Fixes in master.

@mattab
Copy link
Member

mattab commented Mar 13, 2013

I also updated the Hide analytics footprint faq

@mattab
Copy link
Member

mattab commented Mar 13, 2013

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
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants