Difference in visits: VisitsSummary.getVisits vs Actions.getPageUrls


#1

Hi guys,

I having some trouble understanding the data from the methods using via API tracking.
My guess should be that the number from VisitsSummary.getVisits should be equal to the sum of nb_visits from Actions.getPageUrls, but this is not the case at all.

Can somebody explain this, please?

Thanks!


(Matthieu Aubry) #2

your assumption is not correct. see General - Analytics Platform - Matomo


#3

Hi Matt,

Thanks you for your answer.
I am not sure, i understand why this is the case. An example:

http://demo.piwik.org/?module=API&method=VisitsSummary.getVisits&idSite=7&period=day&date=yesterday&format=xml&token_auth=anonymous&translateColumnNames=1

  • 1259 vists

http://demo.piwik.org/?module=API&method=Actions.getPageUrls&idSite=7&period=day&date=yesterday&format=xml&token_auth=anonymous&translateColumnNames=1

  • sum of nb_vists = 827

Can you please explain? Thanks in advance.


(Matthieu Aubry) #4

Add &filter_limit=-1 to get all the rows in the result


#5

Hi Matt,

Thanks for your answer.

I have tried your solution and got this result:
VisitsSummary.getVisits = 1410
Actions.getPageUrls (without filter_limit=-1) = 1602
Actions.getPageUrls (with filter_limit=-1) = 2293

Which number is the correct one and why is it so different?

Thanks in advance for your answer!