Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Re: Several API Methods returning wrong nb_visits for certain date ranges

$
0
0
That is correct, deleting and regenerating has not solved this problem.

I dont know how these number are calculated internally, but it appears the error is occurring when ranges span dates between two different weeks (assuming Piwik considers Monday the start of the week, which I believe is the case)...

For example, concerning the month of November 2013 ->

Results are correct for any range of just one day within that month.
Results are correct for any range within the same week.
Results are correct for the range of the entire month.

When spanning multiple weeks, here are some figures ->

Monday 4th to Sunday 10th = 2829 (correct, total for the week)
Monday 4th to Monday 11th...Saturday 16th = 2829 (all these ranges return the first week's total)
Monday 4th to Sunday 17th = 5216 (correct, total value for the two complete weeks)
and so on...

All these errors seem to be occurring when date ranges span multiple but not full weeks. I dont know if that information is helpful, but perhaps it is.

Viewing all articles
Browse latest Browse all 13117

Trending Articles