-
-
You must be signed in to change notification settings - Fork 2.7k
Edge case: each page is a new visit #1916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe a solution would be to consolidate the visits at the beginning of archiving: deleting all visits from the same visitor that happen within 30min ranges. |
We should be able to fix this in #409. |
It's possible this is caused by bots (e.g., web scrapers). On the initial request, the bot saves cookies to its cookie jar, and on subsequent requests, sends the cookies without updating the cookie jar. Another possibility is that the Tracker has gotten slower, and that this is a duplicate of #1108, experiencing the race condition where:
We can mitigate this by calling $this->end() before Piwik_Common::runScheduledTasks(). When we implement #409, we'll only be sending idcookie, so $this->end() can be called even sooner, e.g., as soon as we've confirmed it's a returning visitor. (This will also improve perceived tracker responsiveness.) |
Do you still have problems to reproduce this issue? |
awesome, I can replicate so it's OK. stay tuned.. vipsoft, I'm going to force the tracker to check the cookie value on each request. This will be overhead compared to current algorithm, but that's the price to pay for accuracy when bad data is coming in. Then we'll be pretty close to have 1st party cookie only, since the code will be based on the unique ID. |
Could also be triggered in use case:
Each piwik request will receive a page view with the old cookie until the new one is set in the browser cookie jar. |
(In [3634]) Fixes #1916 |
Can you provide a patch or will you release a new update soon? |
Please try the new beta at: http://builds.piwik.org/piwik-1.1.2b1.zip let me know if it fixes the issue completely :) |
Thanks matt. I installed the version, let's see what happens. I will report later the day if it worked out. FYI: I got a JS Alert when I first opened the page :)
Dunno if this has something to do with Piwik. However it just appeared once, now it's gone even on page reload. |
Matt: Seems to work like a charm with 1.1.2b1! Great work, thanks for your fast help. I guess the wrong counts cannot be undone in db, right? So my daily (doesn't really matter) but also weekly and monthly data is not usable for analysis anymore!? Or might there be a way to re-parse the data of the last day? |
Replying to vipsoft:
What happened to us yesterday and today seconds this hypothesis : I second awesome's question, is there a way to rebuild visits, and repair yesterday stats (we can code something and contribute it if you give us some hints) ? |
I haven't tested (WARNING) but a query like this might work:
This will delete all visits from visitors beyond their first visit on $THE_DATE and therefore keep only one visit per visitor on that day Please test on a test dataset before applying to your real one (or use on a copy of the table) |
When the cookie is somehow read only, old timestamps will be read and new visits generated every pageview for these buggy requests. This could maybe be caused by a Adblock type extension blocking writes to the cookie, but still passing it to the request.
The text was updated successfully, but these errors were encountered: