'nb_uniq_visitors' in API.get omitted when using 'period=range'

If I run the following query:
http://demo.piwik.org/?module=API&method=API.get&idSite=7&period=day&date=today&format=JSON&token_auth=anonymous

I get the following results:


{
nb_uniq_visitors: 289,
nb_visits: 309,
nb_users: 0,
nb_actions: 540,
max_actions: 19,
bounce_count: 233,
sum_visit_length: 31547,
nb_visits_returning: 93,
nb_actions_returning: 218,
nb_uniq_visitors_returning: 83,
nb_users_returning: 0,
max_actions_returning: 19,
bounce_rate_returning: "62%",
nb_actions_per_visit_returning: 2.3,
avg_time_on_site_returning: 190,
nb_conversions: 8,
nb_visits_converted: 5,
revenue: 14,
conversion_rate: "1.62%",
nb_conversions_new_visit: 8,
nb_visits_converted_new_visit: 4,
revenue_new_visit: 16,
conversion_rate_new_visit: "1.45%",
nb_conversions_returning_visit: 2,
nb_visits_converted_returning_visit: 2,
revenue_returning_visit: 2,
conversion_rate_returning_visit: "2.15%",
nb_pageviews: 474,
nb_uniq_pageviews: 431,
nb_downloads: 1,
nb_uniq_downloads: 1,
nb_outlinks: 49,
nb_uniq_outlinks: 41,
nb_searches: 16,
nb_keywords: 14,
nb_hits_with_time_generation: 461,
avg_time_generation: 0.609,
bounce_rate: "75%",
nb_actions_per_visit: 1.7,
avg_time_on_site: 102
}

But if I change the period from day to range, like so:
http://demo.piwik.org/?module=API&method=API.get&idSite=7&period=range&date=2015-07-13,2015-07-19&format=JSON&token_auth=anonymous

I get


{
nb_visits: 8210,
nb_actions: 18328,
max_actions: 81,
bounce_count: 5578,
sum_visit_length: 1323065,
nb_visits_returning: 2461,
nb_actions_returning: 8080,
max_actions_returning: 81,
bounce_rate_returning: "50%",
nb_actions_per_visit_returning: 3.3,
avg_time_on_site_returning: 296,
nb_conversions: 229,
nb_visits_converted: 150,
revenue: 389,
conversion_rate: "1.83%",
nb_conversions_new_visit: 139,
nb_visits_converted_new_visit: 92,
revenue_new_visit: 245,
conversion_rate_new_visit: "1.6%",
nb_conversions_returning_visit: 90,
nb_visits_converted_returning_visit: 58,
revenue_returning_visit: 144,
conversion_rate_returning_visit: "2.36%",
nb_pageviews: 16534,
nb_uniq_pageviews: 13965,
nb_downloads: 10,
nb_uniq_downloads: 6,
nb_outlinks: 1233,
nb_uniq_outlinks: 1172,
nb_searches: 551,
nb_keywords: 455,
nb_hits_with_time_generation: 15858,
avg_time_generation: 0.441,
bounce_rate: "68%",
nb_actions_per_visit: 2.2,
avg_time_on_site: 161
}

What happened to 'nb_unique visitors’? Why is it left out? Any way to still get this metric?

Hi there,

What happened to ‘nb_unique visitors’?

See this FAQ: http://piwik.org/faq/how-to/faq_113/

Oh, I see, thanks!!

How long does this take to come into action after changing the config?

it will be applied to new reports processed after the config change. if you want to re-process old reports see: How do I reprocess all websites, all dates and all periods, after initial import of logs? - Analytics Platform - Matomo

1 Like

after making these config changes I’m still unable to see unique visits for returning users. Is there something I’m missing?