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

VisitsSummary.get different result when period is range #13119

Closed
homewantad opened this issue Jun 30, 2018 · 1 comment
Closed

VisitsSummary.get different result when period is range #13119

homewantad opened this issue Jun 30, 2018 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@homewantad
Copy link

Hi,

when I use your example query with different period inputs, 2 fields are missing by the range query.

The result for this query

https://demo.matomo.org/?module=API&method=VisitsSummary.get&idSite=7&period=range&date=2017-06-30,2018-06-30&format=JSON&token_auth=anonymous

is

{
nb_visits: 260152,
nb_actions: 516247,
nb_visits_converted: 40,
bounce_count: 176310,
sum_visit_length: 33869407,
max_actions: 1041,
bounce_rate: "68%",
nb_actions_per_visit: 2,
avg_time_on_site: 130
}

With day and today:

https://demo.matomo.org/?module=API&method=VisitsSummary.get&idSite=7&period=day&date=today&format=JSON&token_auth=anonymous

{
nb_uniq_visitors: 105,
nb_users: 0,
nb_visits: 111,
nb_actions: 213,
nb_visits_converted: 0,
bounce_count: 76,
sum_visit_length: 9307,
max_actions: 18,
bounce_rate: "68%",
nb_actions_per_visit: 1.9,
avg_time_on_site: 84
}
@Findus23
Copy link
Member

This is to be expected as Matomo does not calculate unique visitors for date ranges and years by default. This can be changed as explained here:
https://matomo.org/faq/how-to/faq_113/

@Findus23 Findus23 added the answered For when a question was asked and we referred to forum or answered it. label May 24, 2020
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