• Resolved BeeCee

    (@csigncsign)


    Hi,

    I had posted in your German WP-Piwik forum but as you’ve suggested I post now here, hope my English is good enough 😉

    I use WP 3.8 and WP-Piwik network enabled. I have already made a reset and due to the mess in my Piwik installation deleted all sites; so far so good.

    Problem:
    as soon as an old website (sub-blog) of my network is called, then the PIWIK installation created a new entry – so far so good. But this entry has for example now the (ongoing) ID 21 in PIWIK, although the WordPress ID of this blog is 1.

    Problem is now, that the tracking code has also the ID 21 and not the ID 1 of the WordPress (sub)blog – and therefor I guess, the tracking is also not right?

    I have created a screenshot for this dilemma:
    https://www.dropbox.com/s/w1bgzuekvv405hd/screenshot-piwik-seiteninfo.jpg

    I have tried to “create a piwik site” with in the plugin’s settings, but in PIWIK itself, they get now ongoing IDs: 21, 22, 23 …
    But in this way, no single (sub)blog has in PIWIK the same ID as in WordPress – and therefor the tracking code has the PIWIK ID in it and not the WordPress ID of this blog.

    I call this, what you had suggested in the forum with this code:

    http://meinePiwikInstallation.de/index.php?module=API&method=SitesManager.getSitesIdFromSiteUrl&url=http://meinblog.de&format=xml&token_auth=00000000000000

    … this results indeed in the ID 21 – but this blog is in fact the first, that I have ever created within my WordPress network installation and has therefor the WordPress ID 1.

    Is this a normal behaviour with this messed up IDs between the Piwik plugin + Piwik installation + WordPress network/multisite – and can therefor the tracking (ID) be right?

    Thanks a lot in advance for any help.

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

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

    (@braekling)

    Your Piwik setup doesn’t know anything about WordPress or its IDs. Every site (absolutely independent from WordPress, Typo3 or whatever CMS you are using) gets a new ID generated by Piwik itself. So Piwik is not able to tell you anything about a sites WordPress internal ID.

    To allow Piwik to count visitors related to the correct site, it needs its own ID to identify the site. So your WordPress blog has to contain a tracking code using the Piwik ID to tell Piwik which site the visitor is to count for.

    So the behavior is correct.

    Thread Starter BeeCee

    (@csigncsign)

    Sounds great, thanks a lot for the explanation – I was totally confused about this.
    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site ID messed up between WP-Piwik and Piwik itself’ is closed to new replies.