I’m trying to use the Action.getPageUrls to get the most visited pages from part of a web site and I’m trying to use the segment to filter but it does not come out the way I want
I want the most visited pages from subpage-2 and further down in the structure but the above does not do it.
Would like stat on these:
http://my-site.se/subpage-1/subpage-2/page-1
http://my-site.se/subpage-1/subpage-2/page-2
But these are also included and not wanted:
http://my-site.se/subpage-1/page-22/
http://my-site.se/news/2025/11/my-news
I also get stats for the start page.
Is there anyway to get want I want using somw kind of filter?
Segments in Matomo are visit-based. This means when you apply a segment that filters by specific page URLs, Matomo will include all visits that contain those page URLs—but it will also show all actions from those visits, including other pages viewed during the same visit.