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
pageUrl segment does not work with =@ contains operator #2727
Comments
Reported in http://forum.piwik.org/read.php?2,84935 |
Is there currently another way to achieve the segmentation behavior expected when using the pageUrl segment with the =@ contains operator? Thanks. |
(In [5719]) refs #2727 =@ and !@ for pageUrl / pageTitle segments |
The segmentation mechanism with callbacks was built for comparing against a single ID, which only works for == and !=. I tried to introduce dynamic SQL sub-expression with as little impact on the existing system as possible.
Btw, I changed the "action not found"-value from -1 to -100 because we were discussing to use -1 for something else. When we do, we would most likely forget to change the value. ;) Please review. |
(In [5742]) Fixes #2727
IMPLEMENTATION NOTES / limitations:
|
Nice update, makes it much cleaner! What makes you think the second limitaion exists? Page title und page URL are both action-based reports/segments, so the output should be as expected. It tried it on my local box and it works. |
Thanks for feedback, reopening to investigate further my claim |
You're right, it WORKS! :) |
Example: http://demo.piwik.org/index.php?module=API&method=Actions.getPageUrls&format=XML&idSite=7&period=day&date=yesterday&filter_limit=100&segment=pageUrl=@list
However: http://demo.piwik.org/index.php?module=API&method=Actions.getPageUrls&format=XML&idSite=7&period=day&date=yesterday&filter_limit=100
shows many page URLs containing "list" which should be returned in the first call.
The text was updated successfully, but these errors were encountered: