Segments with rule "URL > contain" are not working [solved with "search" function but still a problem with total count]

Hi to all,

I created some segments in Matomo, but i’m noticing someting is going wrong.

My segments are based on rule related to URL text, like this:

URL > contain > /20

But using this kind of segment into “Pages” report, I see in results list, also results like:

/
/about
/services

Is this a bug or I made some mistakes?

I’m expecting only URl that contain “/20”…!!!

Thanks in advance for supporting!
Bye.

P.S. I’m using Matomo On-Premises

I found a workaorund,

Instead of “segment” now I’m using the “search” function to make a more specific selection.

All works fine BUT if I use the “Total” count line, the numbers are all wrong, because Matomo still consider all results and not the the only ones “selected” by search function.

Here an image:

Is possible to fix this beahaviour?

Thanks in advance fo supporting!
Bye.

Hi there,

Segments in Matomo are visit based, so a segment will return any visits that match your criteria but this would also include any actions that occurred within those returned visits. These actions could be other page views, events, goals etc. This will be why you see other PageURLs in your report with the segment loaded.

This is explained further in the following help page - https://matomo.org/faq/general/why-do-urls-other-than-those-in-my-segment-appear-in-my-reports/

In regards to the ‘Totals’ row, the total is not dynamic unfortunately. The total will be based on all rows in the report. When searching the report for a certain row, the total row would still be based on the entire report.

We do have an open feature request to see the totals row made dynamic and update when searched/filtered here https://github.com/matomo-org/matomo/issues/18056

Thanks for support!

I join the request for dynamic totals!