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

Getting data from the API delivers different data than from the UI #2101

Closed
anonymous-matomo-user opened this issue Feb 21, 2011 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

I searched the demo Piwik UI for visits today (2011 Feb 21):

http://demo.piwik.org/index.php?module=CoreHome&action=index&idSite=1&period=day&date=2011-02-21#module=VisitTime&action=index&idSite=1&period=day&date=2011-02-21

This is the same query using the JSON API:

http://demo.piwik.org/index.php?module=API&method=VisitTime.getVisitInformationPerServerTime&idSite=1&period=day&date=2011-02-21&format=JSON&token_auth=anonymous

Look at the graph (by server time). The data is different for almost all of the hours that are reported. For example, hour 12:

UI: 323 visits
API: 304 visits

These should be exact.

@robocoder
Copy link
Contributor

You're looking at the wrong numbers.

At the dashboard widget, it says "Visits" at the top. This corresponds to nb_visits.

If you look at the API output, you'll see both the number of unique visitors (304) and visits (323).

...
{"label":"12h","nb_uniq_visitors":304,"nb_visits":323,

@robocoder
Copy link
Contributor

See #1820 for proposed enhancement.

@anonymous-matomo-user
Copy link
Author

Thanks!

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants