Has anyone else had issues with ‘sum_daily_nb_uniq_visitors’ returned from the API? I am getting very odd results that I cannot explain.
I am using the UserCountry.getCity method. When I make a call for a range of 2013-10-01 to 2013-10-31, ‘sum_daily_nb_uniq_visitors’ values appear correct, based on historical usage of the site, typically around 95% of nb_visits.
If, however, I increase the date range by moving the start date back one day to make the range 2013-09-30 to 2013-10-31, ‘sum_daily_nb_uniq_visitors’ values actually decrease by a ridiculously large amount. Something has to be wrong here.
I’ve noted this same behavior in getRegion and getCountry methods as well.
Anyone else notice this problem and/or have a workaround for it?
UPDATE: I realized I didn’t make it very clear, but this is happening when period=range.
I am unable, at this moment, to set up 2.0beta and perform these tests. I can report back with my findings when I am able to do so. In the meantime, I ran the tests from piwik.org…
Here is an example using the Piwik.org API reference URLs and data ->
For September 30th to October 31st (one day more than the previous range), for ‘Unknown city’, the API reports 260 visits, but only 31 sum daily unique visitors.
This error exists for all cities in the results, and the same in the regions and countries reports as well.
This appears to be a problem more global in nature, as it is not limitted to only the UserCountry methods. I found the same problem exists in DevicesDetection, UserSettings, and Provider methods as well.