Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Events.getAction doesn't report all actions #12512

Closed
linuxfan3 opened this issue Jan 26, 2018 · 3 comments
Closed

API: Events.getAction doesn't report all actions #12512

linuxfan3 opened this issue Jan 26, 2018 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@linuxfan3
Copy link

I am using this code to get an Array with all event actions for the last 90 Days:

$request = new Request('
module=API
&method=Events.getAction
&secondaryDimension=eventCategory
&idSite=26
&date=last90
&period=range
&format=PHP
&prettyDisplay=0
&flat=1
&token_auth=xxxxxxxxxxxxxxxxxxxxxxxxxxx
');

Unfortunately it reports only 350 Events where the PIWIK web interface shows 539 for the same period.

There seems to be no pattern for what events are given back and which are not.

Any ideas?

@tsteur
Copy link
Member

tsteur commented Jan 26, 2018

Try to add &filter_limit=-1.

@linuxfan3
Copy link
Author

Same result...

@linuxfan3
Copy link
Author

The solution was to change

&method=Events.getAction
&secondaryDimension=eventCategory

to

&method=Events.getCategory
&secondaryDimension=eventAction

I don't understand why it does make a difference but maybe it's not a bug so you may close this report.

Thank you

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants