id property
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).
Implementation
final String? id;