Skip to content
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

difference between _id and uid #18495

Closed
mkassir95 opened this issue Dec 13, 2021 · 3 comments
Closed

difference between _id and uid #18495

mkassir95 opened this issue Dec 13, 2021 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@mkassir95
Copy link

In the API reference documentation there are two terms : _id & uid .
What is the use case of each of them and what the difference between them

@sgiehl
Copy link
Member

sgiehl commented Dec 13, 2021

Hi @mkassir95. Would you mind linking the according documentation pages?

@mkassir95
Copy link
Author

mkassir95 commented Dec 13, 2021

Hi , yes sure
https://developer.matomo.org/api-reference/tracking-api

uid is in Optional User Info Section and _id is in Recommended paramters Section

@sgiehl
Copy link
Member

sgiehl commented Dec 14, 2021

Setting the uid should normally overwrite the _id, based on your config setting of enable_userid_overwrites_visitorid. While the _id is hexadecimal the uid can be filled with more custom content (like a username or alias).
If you need more help with that, maybe try asking your questions on our forum (https://forum.matomo.org). We are actually only handling bug reports and feature requests here.

@sgiehl sgiehl closed this as completed Dec 14, 2021
@sgiehl sgiehl added the answered For when a question was asked and we referred to forum or answered it. label Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants