Articles on: Matomo

Matomo Segment

You can use a Matomo segment to filter your data in Looker Studio. Here's how to do it:

Create a segment in Matomo that matches the filter you want to use in Looker Studio. Then, get the referrer in the URL:

For example, I created a "Channel Type Search" segment on my Matomo, the URL is:

https://catchr.matomo.cloud/index.php?module=CoreHome&action=index&idSite=1&period=range&date=previous7#?period=range&date=previous7&segment=referrerType%3D%3Dsearch&idSite=1&category=Goals_Goals&subcategory=2

I extract the referrerType and transform "%3D%3D" to "==" -> referrerType==search

Save this for later.

Then in your Looker Studio Matomo data source, check this option:

Allow modification of segment in your Matomo report

Then in a chart, fill the parameter with referrerType==search, it will filter the data with your segment.


Customize your segment foor a given charts in your Loooker Studio reports.
The segment needs to exist in your Matomo to be used in Looker Studio.

You can set a default segment in the data source here:

Set up a default segment in your Matomo Looker Studio report.

Updated on: 12/09/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!