ndb-core icon indicating copy to clipboard operation
ndb-core copied to clipboard

Prevent some user account actions to appear in matomo

Open TheSlimvReal opened this issue 2 years ago • 2 comments

In order to further improve our monitoring system, it would be great if we can exclude certain user accounts from being logged to matomo. This could be done through a certain flag on the user account and a filter in the matomo analytics website.

TheSlimvReal avatar Jan 23 '23 10:01 TheSlimvReal

Suggested approach:

Add another attribute, "disableUsageAnalytics = true", to Keycloak accounts (similar to how we use "exact_username" to map to the correct User entity). Upon authentication in the app, trigger a call to the AnalyticsService to disable itself in case that flag is set.

@TheSlimvReal are Keycloak attributes passed along to the Angular client automatically or would this need a mapping in our backend?

sleidig avatar Sep 20 '23 12:09 sleidig

@sleidig The property would probably need to be mapped to JWT token claims. This can be configured in keycloak on a per-realm basis.

TheSlimvReal avatar Sep 25 '23 12:09 TheSlimvReal