I’m using Piwik for 2 years now, and I’m currently developing a Module for this piwik’s awesome version 2.
So here I am.
There is something that I can’t understand with the visitorID management.
Here is the workflow :
- I delete all cookies related to piwik.
- I toggle the private navigation mode on Firefox.
- I navigate through my website, for generating some visit datas.
- I close Firefox and open a new window in private navigation
And, here is what I can’t understand : the two visits count for the same one in my visitor log. But it shouldn’t ? There is no link between these two sessions !
Moreover, the visitor ID obtained from Piwik.getAsyncTracker().getVisitorId() is not even the same than the one in my visitor log :S
My plugin add a script on the client side, using this previous method to get the visitor ID which I need to communicate with my server. So if it’s not the same than the one stored in my databse, it won’t work.
Maybe I shouldn’t use this method to get the visitor ID ?
Is it even possible to properly get the visitor ID on the client side ?