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

"Page URL Does not contain" segment condition has excluded Page URL in reports #19672

Open
Starker3 opened this issue Aug 25, 2022 · 7 comments
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.

Comments

@Starker3
Copy link
Contributor

It looks as though the "Page URL does not contain" segment condition still allows some Page URLs to be included in the Pages report.

If we take an example of this segment:
image

And then process the reports, we still get some Page URLs in the report that contain this exact string:
image

However, the segmented visits log doesn't show any actual data for this:
image

When searching the actual visits log there are no visits that include this string:
image

@Starker3 Starker3 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Aug 25, 2022
@NathanDB99
Copy link

I have brought this issue to the attention of Matomo and they were able to replicate is, as seen above. In my case the /index of pages we want to exclude are still shown in the pages report. Indeed the /index of this pages are not shown in the visitor logs.

@sgiehl
Copy link
Member

sgiehl commented Aug 26, 2022

I think that is kind of expected behavior as segments in Matomo work that way. A segment is always used to filter the list of visits that are included in a segment. So when using a segment like page url does not contain Matomo will select all visits that have a page view with a url that does not contain something. It will not exclude a visit if there is an action that contains the defined url (if there are also other actions). Afterwards when generating the reports the excluded url will so be contained in the reports again, as it is part of a visit that is included in the segment.

@Starker3
Copy link
Contributor Author

@sgiehl But in that case would we not expect to see that in the Visits Log when viewing the segment?

@heurteph-ei
Copy link

Isn't is the same as:
#17388

@sgiehl
Copy link
Member

sgiehl commented Aug 29, 2022

@Starker3 you will also see that in the visits log. What you wouldn't see there is a visit that only has an action with the excluded url. But as soon as visit also has other actions it will be shown.

@tsteur
Copy link
Member

tsteur commented Aug 29, 2022

FYI And it likely refs #14664

@Starker3
Copy link
Contributor Author

Thanks for the additional info @sgiehl
When I check the Visits log for All Visits we can indeed see some visits that contain other actions:
image

However, if I apply the segment from the screenshot above (That excludes any Page URL with /selection), then there are no visits shown that include this Page URL in all ~900 visits in the segment:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced.
Projects
None yet
Development

No branches or pull requests

6 participants