-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Matomo 4 doesn't merge not logged visits when a user logs-in #16949
Comments
Hi @AAudusseau you can get the previous behaviour as it was under Matomo 3 by setting the following config in your [Tracker]
enable_userid_overwrites_visitorid = 0 I've also tweaked the guide slightly to mention this |
Hi @tsteur, Thanks for your answer. I saw this option, but unfortunately I use a cloud-hosted instance so I can't change the configuration myself and I suppose it is enabled by default. I think I need the Matomo 3 behavior and force the visitorId from the server side. About your changes in the guide, the part "When a visitor connects to your website and is not logged-in (User ID is not set)" is still wrong when the option is enabled (this is the purpose of this issue). And also I look a bit in the code, and there is duplicate code here : https://github.com/matomo-org/matomo/blob/4.x-dev/core/Tracker/Visit.php#L585, probably a merge mistake 😉 |
Thanks for that hint. Will create a PR to change that 👍 |
Just FYI if you're using Matomo Cloud then we can change this for you.
@mattab @peterbo I copied into the guide the original docs that were there before changing the behaviour in Matomo 3.13 or so. Do you know what is expected here or how it works? I think the code is likely right but the docs aren't correct. |
Yes that would be perfect, my instance is located at https://opc.matomo.cloud Thanks! |
This should be how it works when it is enabled (userID overwrites visitorID). @AAudusseau what is exactly happening, when you're trying the use case? Can be quite different, if you do those requests Server-to-Server, because the server doesn't use a cookie for recognition, after you don't pass the UserID anymore with the request. |
Right now when the In red the login page visit (no userID set), and in green authenticated pages (userID set). |
Hi @AAudusseau we'll be happy to make that change. Could you contact [email protected] for this change? Just so we can verify that you are the owner of that account. |
I have the same issue. I don't understand why having
(ref: https://matomo.org/docs/user-id/#when-user-id-overwrites-visitor-id-feature-is-enabled) so I think the docs is still not correct ? or other bug I contacted support as well |
@Atala the doc has not changed so I agree it is still incorrect. |
I got this issue also, my config for So, about this EDITED: I had tried to set it to |
Hi @nogamenofun98 |
Hi everyone, I would like to track some events from the server side, and before Matomo I was unable to do it because of this issue : #15593
Now the problem is gone, but the behavior describe here is not true anymore. Visit when the user was not logged are not merged anymore after setting the user ID.
The text was updated successfully, but these errors were encountered: