Filter Visitors data by URL pattern?


#1

Is there a way to filter the results in the visitors tab by a URL or title pattern? I have a URL structure like:

/departments/

I would like to see visitor reports for each department (unique visitors, page views, etc), is this possible to make in a plugin or through a filter_column argument?


(Matthieu Aubry) #2

Yes it is possible, see the example: http://dev.piwik.org/svn/trunk/misc/api_example_marketing.php
for example


http://demo.piwik.org/?module=API&method=Actions.getPageUrls&idSite=1&period=day&date=previous8&format=xml&filter_column=label&filter_pattern=demo&expanded=1

but it could be made easier, this is a feature request: Api function Actions.getPageUrls should make it easy to search for a given URL or path · Issue #1363 · matomo-org/matomo · GitHub


#3

Those examples filter the Actions tab, I’m looking to generate reports for sub-urls that have:

visitors

unique visitors

Avg actions per visit
Avg time per visit

page views

unique page views

Bounce rate