WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] piwik.php (4 posts)

  1. prefect
    Member
    Posted 1 year ago #

    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/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    You talk about this one, didn't you?
    http://piwik.org/faq/how-to/#faq_132
    http://dev.piwik.org/trac/ticket/2019

    Maybe I can add this functionality to WP-Piwik. I'll give some thought to this.

  3. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Work in progress.

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Added in 0.9.8. Release very soon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.