WordPress.org

Support

Support » Plugins and Hacks » [Resolved] piwik.php

[Resolved] piwik.php

  • hi there,

    first let me say I love the plugin, its awesome.

    my question is, I am using the piwik.php method of tracking so that all my sites aren’t pointing to the same piwik server in the code at the footer.

    example of the tracking code I use:

    <script type="text/javascript">
    var pkBaseURL = (("https:" == document.location.protocol) ? "https://##DOMAINBEINGTRACKED##.com/" : "http://##DOMAINBEINGTRACKED##.com/");
    document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.php' type='text/javascript'%3E%3C/script%3E"));
    </script><script type="text/javascript">
    try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", ##SITENUMBER##);
    piwikTracker.trackPageView();
    piwikTracker.enableLinkTracking();
    } catch( err ) {}
    </script>

    note that piwik.php is used instead of .js as well as the ## variables, etc.

    I do this so it’s not so easy for my competition to figure out what all sites I have in my network, having no central piwik server definied.

    the ##DOMAINBEINGTRACKED## being the site I’m gathering stats on vs. pointing at that central piwik server.

    http://wordpress.org/extend/plugins/wp-piwik/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] piwik.php’ is closed to new replies.