Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author braekling

    (@braekling)

    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?

    Thread Starter Ovidiu

    (@ovidiu)

    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!

    Plugin Author braekling

    (@braekling)

    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.

    Thread Starter Ovidiu

    (@ovidiu)

    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/&#8221; : “http://zice.ro/piwik/&#8221;);
    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&#8243; 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/&#8221; : “http://zice.ro/piwik/&#8221;);
    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&#8243; style=”border:0″ alt=”” /></p></noscript> `

    how come?

    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

    Plugin Author braekling

    (@braekling)

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

    Thread Starter Ovidiu

    (@ovidiu)

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

    Plugin Author braekling

    (@braekling)

    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: WP-Piwik] on multisite install mixing stats of different sub domains’ is closed to new replies.