-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Set a random visitor ID at each requests instead of using 0000000… for anonymous analytics #5095
Comments
I didn't follow everything regarding matomo but it looks like we put the same value for conceptually different I assume that what is bothering you is the visitor ID, that uses one single bucket (' Food for thoughts: cf. /// The [visitorId] should have a length of 16 characters otherwise an
/// [ArgumentError] will be thrown. This parameter corresponds with the
/// `_id` and should not be confused with the user id `uid`. See the
/// [Visitor] class for additional remarks. It is recommended to leave this
/// to `null` to use an automatically generated id. cf. /// The unique visitor ID, must be a 16 characters hexadecimal string.
///
/// Corresponds with `_id`.
///
/// Every unique visitor must be assigned a different ID and this ID must not
/// change after it is assigned. If this value is not set Matomo will still
/// track visits, but the unique visitors metric might be less accurate.
///
/// Think of this as a device ID; in case of website tracking (where Matomo
/// originates), this would be the cookie identifying the browser and not
/// necessarily a user (since a single browser might be used by multiple
/// users).
final String? id;
/// The [User ID](https://matomo.org/guide/reports/user-ids/) is any non-empty
/// unique string identifying the user (such as an email address or an
/// username).
///
/// Corresponds with `uid`.
final String? uid; |
@monsieurtanuki your solution is smart and seems perfect :-) |
With such an enthusiastic comment I was somehow forced to code it today 😉 |
@monsieurtanuki because it will take time to deploy this fix to every one, I am manually patching matomo to do the same. |
What
We decided that to track statistics without being "personal" we will use a uid of 00000… to report to Matomo.
This create two problems:
Proposal
Do not define user id (uid) for anonymous stats and instead use a random visitor id that change on every requests.
Note: as queue is based upon the first letter of visitor id, ensure it's evenly distributed.
This way we would solve both problems: nicer graphs and better queues distribution.
Related issue
Issue on matomo side (as I though it was a bug on their side): matomo-org/plugin-QueuedTracking#231
The text was updated successfully, but these errors were encountered: