Skip to content
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

Single visits broken into multiple visits in 3.4 #12725

Open
metalocator opened this issue Apr 13, 2018 · 2 comments
Open

Single visits broken into multiple visits in 3.4 #12725

metalocator opened this issue Apr 13, 2018 · 2 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.

Comments

@metalocator
Copy link

Hi,

We are tracking twice the visits in Matomo 3.4 v.s. 2.16.5.

We’re running both servers (3.4 v.s. 2.16.5) side-by-side and our expectation would be that they would track the same numbers in all cases.

We created the 3.4 server by duplicating our existing 2.16.5 server and running a manual upgrade. The config is the same, (minus the trusted/allowed hosts setting).

We’re funneling data from our customer Web sites to both servers by using the dual tracker method described here:
https://developer.matomo.org/guides/tracking-javascript-guide#multiple-piwik-trackers

I looked at the apache log files and both servers show the same number of log entries for the same date range.

This picture of the visitor log shows it most concisely.

same_user

Notice their visit is cut arbitrarily into two visits.

That exact same user, tracking in our 2.16.5 instance is shown as a single visit.

2 16 5

The first screenshot shows more actions due to the Content impressions we track are shown as actions in 3.4, which is great.

The total visit count is roughly doubled
visit_compare

We are also tracking this same site in Google Analytics, and the visit count agrees with the 2.16.5 numbers.

We can't upgrade to 3.4 until we resolve this, so any feedback, or even a hint of where to look, would be sincerely appreciated. Beyond appreciation, we are also willing to pay for assistance.

@metalocator metalocator changed the title Single visits broken into mutliple visits in 3.4 Apr 13, 2018
@mattab
Copy link
Member

mattab commented Sep 25, 2018

Hi @metalocator
Could you please check with our latest 3.6.0-b2 beta if this issue may be fixed for you?
see http://piwik.org/faq/how-to-update/faq_159/

@mattab mattab added this to the 3.8.0 milestone Sep 25, 2018
@fatica
Copy link

fatica commented Sep 25, 2018

Hi,

We saw this bug while running multiple trackers in parallel in production in a testing preparation for a cut over from 2.16.5 to 3.4.

We found that running the QueuedTracking/Redis plugin solved the problem and have been using that ever since.

Unfortunately it would be very difficult to orchestrate a test since we don't maintain parallel environments like this. Additionally we only saw the issue for our sites under medium to heavy load and I'm not sure how to simulate that. Basically when many requests would hit the log "simultaneously" according to apache log granularity.

In theory. to reproduce the issue, set up 3 environments. 2.16.5, 3.4 and the new beta. Throw the exact same high load at them quickly and see if 3.4 shows fewer visits than 2.16.5 and the new beta.

Thanks for looking into it, and sorry I can't be of more help testing.

@mattab mattab removed this from the 3.9.0 milestone Mar 18, 2019
@Findus23 Findus23 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label May 24, 2020
@innocraft-automation innocraft-automation removed this from the Backlog (Help wanted) milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.
6 participants