Our webmasters reported a few months ago (while running matomo 3.10.0 but the problem could have been present before) that when they were using segments to filter pages, they had pages that shouldn't be present since out of the segment. We are only using custom variable of scope page segments. The problem was still present in 3.12.0 today before I upgraded to 3.13.0.
We have 6 custom variables of scope "page": site (our CMS is a farm), author, parentcategory, currentcategory, 2ndlevelcategory and typeofpage (actualite, formation, pagelibre, etc).
We have a segment called "page of type news" defined like this:
"Value of custom variable 6 of scope page" is "actualite" ("news", in french)
When this segment is selected we expect , in Behaviour -> Pages, to only see pages of type "actualite" but we actually get pages with different custom variable 6 values. For example, these pages show up:
Since the value of the variable is set by the CMS itself, not a plugin, and a page can't be of 2 different type I don't think it's a CMS bug that would put the wrong page type in some case.
We have the problem with all segments, no matter which custom variable we use, the result is never reliable, being polluted with pages that shouldn't be there.
Hi @ArnY . We fixed https://github.com/matomo-org/matomo/issues/11900 recently which implements correct segmentation behaviour. We understand some users may expect different behaviour for their specific use cases which is why you can restore the old behaviour or there are workarounds see https://github.com/matomo-org/matomo/issues/15130#issuecomment-551252343