Issue with VisitsSummary.getUniqueVisitors API call?


#1

All,

I’ve noticed that when making a request to the VisitsSummary.getUniqueVisitors API with the year period, the result is always 0.

For example, if I go to:
/index.php?module=API&method=VisitsSummary.getUniqueVisitors&idSite=1&period=day&date=today&format=JSON&token_auth=xxx

the result is:


{value: 1}

but if I go to:
/index.php?module=API&method=VisitsSummary.getUniqueVisitors&idSite=1&period=year&date=today&format=JSON&token_auth=xxx

the result is:


{value: 0}

Is this a known issue or am I otherwise (hopefully) missing something? Does anyone else see this behavior?

(The version is 1.1.1)


(vipsoft) #2

The number of uniques in a year is not computed for performance reasons.


#3

I’m having the following issue with the same widget.

index.php?module=API&format=php&token_auth=anonymous&widget=1&idSite=2&method=VisitFrequency.getUniqueVisitors&period=range&date=2011-08-01%2C2011-09-20
result: 0

/index.php?module=API&format=php&token_auth=anonymous&widget=1&idSite=2&method=VisitFrequency.getUniqueVisitors&period=month&date=today
result:7

Any suggestions?


(Matthieu Aubry) #4

http://piwik.org/faq/how-to/#faq_113


(Matthieu Aubry) #5

http://piwik.org/faq/how-to/#faq_113


(Matthieu Aubry) #6

http://piwik.org/faq/how-to/#faq_113