[ANALYTICS-369] DOC: Filtering not available for Matomo Analytics Created: 24/Jun/21  Updated: 13/Jul/21  Resolved: 13/Jul/21

Status: Closed
Project: Analytics
Component/s: None
Affects Version/s: 1.1, 1.2
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Yen Lac Tue
Resolution: Done Votes: 0
Labels: VN-Analysis, maintenance
Remaining Estimate: 0d
Time Spent: 3d 1h 14m
Original Estimate: Not Specified

Issue Links:
Cloners
clones ANALYTICS-365 Filtering not available for Adobe Ana... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Epic Link: Analytics maintenance & partnership support
Sprint: Content Mngmt 7, Content Mngmt 08
Story Points: 3

 Description   

The filtering segment in analytics view currently works only with Google. It would be desirable to have it for Matomo Analytics as well.



 Comments   
Comment by Yen Lac Tue [ 24/Jun/21 ]

Try with this URL, adding &segment=visitorType==returning

https://demo.matomo.cloud/?token_auth=anonymous&date=last2&period=day&method=API.getProcessedReport&filter_limit=10&apiAction=getCountry&apiModule=UserCountry&module=API&idSite=1&format=json&segment=visitorType==returning

Comment by Yen Lac Tue [ 29/Jun/21 ]

After checking the Matomo filtering, I see that the filtering is already supported for Matomo. Please note to use the key segment instead.

For more information about segmentation in Matomo API, please reference this link https://developer.matomo.org/api-reference/reporting-api-segmentation

Hi oanh.thai jlegendre I have put an example how to configure filtering for Matomo in documentation, please help to review this PR https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/product-docs/pull-requests/500/overview :bow

Comment by Oanh Thai Hoang [ 29/Jun/21 ]

Hi yen.lactue, jlegendre, I updated in PR warning for user when they wanna config matomo in analytic extension view.

For more details, not all of segment will work in Matomo. See some issues below regarding filtering by segment pageUrl.

https://github.com/matomo-org/matomo/issues/11900

https://github.com/matomo-org/matomo/issues/15163

https://matomo.org/faq/how-to/how-do-i-get-matomo-segments-to-behave-as-a-filter/

So the best practice is to make sure your segment is working in your Matomo dashboard first by following Matomo's guide before config to analytic extension view

Generated at Sun Feb 11 23:18:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.