-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Multiple unique visit for each action for same User ID #15320
Comments
Any chance in your |
tsteur - as you see reference on pastebin in my |
@itmagpro this looks like the content of |
@itmagpro I think I can reproduce it by adding this tracking code: _paq.push(['disableCookies']);
_paq.push(['setUserId', 'foo']); |
It seems Matomo JS tracker is not sending a visitorId when cookies are disabled. I think it should rather generate one randomly @mattab @sgiehl @diosmosis ? And then it will recognize visitor through configId? In my case every action creates a new visit |
@tsteur From the issue description there is a visitor ID that's being sent but it changes, which would make sense if cookies were disabled since it wouldn't be able to store the visitor ID, correct? I wonder why the configId isn't being matched, maybe there's something else we store in cookies that is used to compute the config ID. The new visitor ID w/ disabled cookies I think is expected behavior after merging #14360, and the config ID is supposed to still match those visitors properly, so there must be a problem w/ the config ID... though I'm not sure what, the code looks ok... |
The problem is that it checks I suppose this is not really needed anymore @diosmosis @mattab ? Also just realising the query above ( |
👍 makes sense to remove the userId is null check. Can pick the issue upf if needed. |
fix #15320 fyi @mattab @diosmosis I wonder if maybe the query should be actually and `user_id is null or user_id = $userIdFromRequestIfGiven`?
👍 created #15337 |
I use latest matomo 3.13.0
I read:
I want to use this "User ID feature" and set code in my site:
In config.ini.php window_look_back_for_visitor var I set to 86400, see my full config.ini.php: https://pastebin.com/KG8FBQHy
But, when I looked statistic:
I see, that same one visitor from same IP, with device and same "Profile ID" (d2f22ac701961993) counted/tracked as unique visitor instead as "Returned visitor" ;(
User ID is feature in Matomo or bug? How to fix this bug?
This bug appear for user which disable cookies, then matomo for same uid (d2f22ac701961993) generate different cid (8cbf24c93d0f4628 | c3f6fec89ef58cb4) for each visit.
Related topics for this problem:
New visit created for each action with userid populated since 3.13 · Issue #15299 · matomo-org/matomo · GitHub
#15299
New visit created for each action with userid populated since 3.13 · Issue #28 · matomo-org/piwik-java-tracker · GitHub
matomo-org/matomo-java-tracker#28
The text was updated successfully, but these errors were encountered: