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
It is not possible to record more than one conversion per second for the same visit #9916
Comments
Is your problem to log more than one item conversion at a time? If so you only need to set a unique item sku for tracking? Maybe post a small example code which fails for you. |
Yes, this is a limitation of the current implementation. There's probably already an issue for this but couldn't find it right now so will leave this issue open. Maybe @mattab has an idea re an existing issue |
User reported it again in #13719 I'm not sure but it looks to me potentially like an easy fix in https://github.com/matomo-org/matomo/blob/3.7.0-rc2/core/Tracker/GoalManager.php#L674-L676 to not use the request timestamp but also some additional random numbers (eg 5 random numbers completed with the last bit of the timestamp or something) |
@mattab @sgiehl @diosmosis any idea why we use the timestamp there? |
The idea of using the timestamp I believe is to prevent 2 same requests sent at the same time to trigger 2 goals. So they have to be at least 1 second apart to trigger a new goal. But if it creates other bugs, we should rather remove this timestamp in the cache buster 👍 @tsteur |
…the same visit fix #9916 we randomize the first 2 numbers increasing the chances to record multiple goal conversions per second per visit.
This happens in v2.15.
If a page sends two conversion calls that are processed in the same second, only the first one is saved to the database. This prevents from recording several conversions that happen in the same page at the same time and you don't want to (or you can't) record those as several items for the same conversion.
Currently this is due to the primary key in the conversions table.
The text was updated successfully, but these errors were encountered: