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

visitor information by hour (no replies)

$
0
0
Hi,

I am executing some piwik apis to get visitor information by hour, i am using segment=visitServerHour==<HOUR>, however i found that the response for such request is always the hour-5. For example , to verify respons, I executed following requests.

url1=module=API&method=VisitTime.getVisitInformationPerServerTime&idSite=1&period=day&date=today&format=xml
url2=module=API&idSite=1&period=day&date=today&format=xml&method=VisitsSummary.get&segment=visitServerHour==5


The above url1 returns data for whole day for every hour, when i compared the respons(no of visits) of url1 (for any given hour) with the respons of url2, the 0hour response of url1 matches with segment=visitServerHour==5, similarly 1hr respons of url1 matches with segment=visitServerHour==6 and so on,

sample xml response for url1:

<row>
<label>0h</label>
<nb_uniq_visitors>6</nb_uniq_visitors>
<nb_visits>6</nb_visits>
<nb_actions>41</nb_actions>
<max_actions>17</max_actions>
<sum_visit_length>7480</sum_visit_length>
<bounce_count>1</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
</row>
<row>
<label>1h</label>
<nb_uniq_visitors>6</nb_uniq_visitors>
<nb_visits>6</nb_visits>
<nb_actions>43</nb_actions>
<max_actions>22</max_actions>
<sum_visit_length>8092</sum_visit_length>
<bounce_count>0</bounce_count>
<nb_visits_converted>0</nb_visits_converted>
</row>

sample xml response for url2:

<result>
<nb_uniq_visitors>6</nb_uniq_visitors>
<nb_visits>6</nb_visits>
<nb_actions>41</nb_actions>
<nb_visits_converted>0</nb_visits_converted>
<bounce_count>1</bounce_count>
<sum_visit_length>7480</sum_visit_length>
<max_actions>17</max_actions>
<bounce_rate>17%</bounce_rate>
<nb_actions_per_visit>6.8</nb_actions_per_visit>
<avg_time_on_site>1247</avg_time_on_site>
</result>

Also, i see the data for url1 is correct, however for url2, i have to provide the hour in future(5 hrs ahead) to get response for current hour,

Please help

Viewing all articles
Browse latest Browse all 4243

Trending Articles