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

[Bug] Differences between the number of visitors from API.get to Referrers.get #22404

Closed
4 tasks done
Chardonneaur opened this issue Jul 17, 2024 · 6 comments
Closed
4 tasks done
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. triaged

Comments

@Chardonneaur
Copy link

What happened?

If you look at https://demo.matomo.cloud/index.php?module=API&method=API.get&idSite=1&period=day&date=yesterday&format=JSON&token_auth=anonymous the number of visitors is 9794, if you look at https://demo.matomo.cloud/index.php?module=API&method=Referrers.get&idSite=1&period=day&date=yesterday&format=JSON&token_auth=anonymous the number of unique visitors is 10857 so, there is an issue in finding the right KPI.

What should happen?

The number of visitors from both reports should be exactly the same.

How can this be reproduced?

Look at https://demo.matomo.cloud/index.php?module=API&method=API.get&idSite=1&period=day&date=yesterday&format=JSON&token_auth=anonymous compare it to https://demo.matomo.cloud/index.php?module=API&method=Referrers.get&idSite=1&period=day&date=yesterday&format=JSON&token_auth=anonymous

Matomo version

5

PHP version

No response

Server operating system

No response

What browsers are you seeing the problem on?

No response

Computer operating system

No response

Relevant log output

No response

Validations

@Chardonneaur Chardonneaur added Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. To Triage An issue awaiting triage by a Matomo core team member labels Jul 17, 2024
@Chardonneaur
Copy link
Author

2024-07-17.11-44-45.mp4

@michalkleiner
Copy link
Contributor

@michalkleiner
Copy link
Contributor

michalkleiner commented Jul 18, 2024

7165+1157+973+847+0=10142

Screenshot 2024-07-18 at 3 35 57 PM

Screenshot 2024-07-18 at 3 35 49 PM

@Chardonneaur
Copy link
Author

@michalkleiner but I didn't mention visits, I mentioned visitors.

@randy-innocraft randy-innocraft added triaged and removed To Triage An issue awaiting triage by a Matomo core team member labels Jul 19, 2024
@peterbo
Copy link
Contributor

peterbo commented Jul 22, 2024

Without looking into details, but I think these two dimensions are not comparable 1:1, since one visitor can have multiple referrers (one per session). So I guess that a unique visitor can be attributed multiple times to different channels. But I cannot open visitor profiles on demo, so I can't check if that's the case.

@Chardonneaur
Copy link
Author

Whaoooo, that's a very good point. Thank you @peterbo I was wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. triaged
Projects
None yet
Development

No branches or pull requests

4 participants