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: Actions.getOutLinks doesn't work with Segmentation #11594

Closed
iadj opened this issue Apr 5, 2017 · 2 comments
Closed

API: Actions.getOutLinks doesn't work with Segmentation #11594

iadj opened this issue Apr 5, 2017 · 2 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.

Comments

@iadj
Copy link

iadj commented Apr 5, 2017

I have a page tracked by Piwik with the URL http://localhost/somelink. There's an outlink on the page i.e. http://google.com.

If I create a GET request to the API with &method=Actions.getOutlinks&segment=pageUrl==http://localhost/somelink nothing shows up.
If I remove the segment from the request it shows the outlink (including all other outlinks).

@iadj
Copy link
Author

iadj commented Apr 5, 2017

You can also try this with the demo:

https://demo.piwik.org/?module=API&method=Actions.getOutlinks&idSite=7&period=day&date=today&format=xml&token_auth=anonymous&segment=pageUrl=@piwik

This doesn't return anything, while removing the segment tag will display all results.

@mattab mattab added the Bug For errors / faults / flaws / inconsistencies etc. label Jun 21, 2017
@mattab
Copy link
Member

mattab commented Jun 21, 2017

You need to use actionUrl segment instead of pageUrl so it matches pages + download + outlink, or use outlinkUrl

@mattab mattab closed this as completed Jun 21, 2017
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Jun 21, 2017
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. Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants