WordPress.org

Ready to get started?Download WordPress

Forums

WP-Piwik
[resolved] on multisite install mixing stats of different sub domains (9 posts)

  1. Ovidiu
    Member
    Posted 2 years ago #

    please have a look at this screen shot: http://screencast.com/t/Foyc2y3b

    thats the stats for the main site and it contains pages from a subblog tracked into the main stats???

    what could be wrong here?

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

  2. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    Please check both tracking codes. Maybe the sites are using the same ID?

    Can you post the tracking codes added to two different sites which are shown as the same site in Piwik?

  3. Ovidiu
    Member
    Posted 2 years ago #

    sorry for my lack of info:

    its a multisite install :-( and the admin tracking code is hardcoded into the plugin.

    so there are no two codes, just one!

  4. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    But there must be two different codes with different IDs? Look at the sites HTML source code to compare the used IDs.

    If course it is the same code, but it should contain different IDs.

  5. Ovidiu
    Member
    Posted 2 years ago #

    the plugin is network activated with the multisite variable set to true inside hte plugin code. on the main blog the piwik auth token is entered and saved.

    MOST blogs report to their own tracking ID but some do use the same as the main blog.

    a blog on a subdomain on this multisite install: http://mariusmihai.zice.ro/2011/katy-perry/am-uitat-titlul-articolului/ has this in the source code:
    `<script type="text/javascript">
    var pkBaseURL = (("https:" == document.location.protocol) ? "https://zice.ro/piwik/" : "http://zice.ro/piwik/");
    document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
    </script><script type="text/javascript">
    try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
    piwikTracker.trackPageView();
    piwikTracker.enableLinkTracking();
    } catch( err ) {}
    </script><noscript><p><img src="http://zice.ro/piwik/piwik.php?idsite=4" style="border:0" alt="" /></p></noscript>`

    the main blog inside a random article: http://zice.ro/informatii/spam-si-anti-spam-cum-ne-aparam-noi-pe-zice-ro/ shows this code:
    `<script type="text/javascript">
    var pkBaseURL = (("https:" == document.location.protocol) ? "https://zice.ro/piwik/" : "http://zice.ro/piwik/");
    document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
    </script><script type="text/javascript">
    try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
    piwikTracker.trackPageView();
    piwikTracker.enableLinkTracking();
    } catch( err ) {}
    </script><noscript><p><img src="http://zice.ro/piwik/piwik.php?idsite=4" style="border:0" alt="" /></p></noscript> `

    how come?

  6. sfrangos
    Member
    Posted 2 years ago #

    Hello Braekling and Colleagues -

    We are looking at using your plugin also in a multi-site installation, and have the following questions:

    • Where can we make a donation for your good development work?
    • What are your future plans to test and update beyond "experimental" (beta?) for multi-site?

    Thanks!

    Scott

  7. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    @Ovidu: Can you check the database settings? Maybe this is caused by your previous try to "clear & reactivate" the plugin? Normally the Piwik ID should be the same if also the Blog ID is the same only.

    @sfrangos:

    - Just have a look at the plugins settings page. You can donate by flattr, paypal or my Amazon wishlist. Thank you very much!
    - First I have to fix the latest bugs and want to add some high recommended features. After this I'll add all WP-Piwik features to WPMU-Piwik also. So I hope to switch WPMU-Piwik from "experimental" (= it's just a try) to "beta" (= this may become a "finished" version one day) soon.

  8. Ovidiu
    Member
    Posted 2 years ago #

    well, when I cleared and reactivated the plugin, I simply searched the whole DB for piwik and deleted anything that had that word in it...

    might be that wasn't all there was to clear...
    any other way to totally clear all of the plugin's settigns and make it "reset" ?

  9. braekling
    Member
    Plugin Author

    Posted 2 years ago #

    You have to delete following *site* options:

    - 'wp-piwik_settings' (newer WP-Piwik versions)
    - 'wp-piwik_siteid','wp-piwik_404','wp-piwik_scriptupdate','wp-piwik_dashboardid','wp-piwik_jscode' (older WP-Piwik versions)

    If a blog is active (=visited since update to WP-Piwik 0.8.4) there shouldn't be a wp-piwik_siteid option regarding this blog.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic