How do segments work technically?

Obviously we misunderstood how segments are supposed to be used. We tried to cut down on page views and events based on custom variable values and paths, but it seems this is not how it is supposed to work.

So, if segments only cut down on visits, what does Matomo actually select for a segment that …

  • filters by “page url contains /en/”? Will it collect all visits where the user had at least 1 page view with an URL matching /en/?

  • filters by “$custom_var set to $some_value”? Will it collect all visits where any page view or event had the variable set to that value?

  • filters by “event category X and event action Y”? Will it collect all visits where at least 1 event with the given properties occurred?

Thanks for your support

Hi,

See Full support for Filters in Matomo 4 · Issue #15438 · matomo-org/matomo · GitHub, Segment with pageURLs + language is not working · Issue #15130 · matomo-org/matomo · GitHub and the linked issues for more information about this.

Ok, seems like my (new) expectations are correct. Thanks!