FrederikDan there is no official way to do it at this time.
You can edit the piwik-analytics.html
file in the vendor
folder https://github.com/FriendsOfFlarum/analytics/blob/master/resources/js/piwik-analytics.html but there's a risk the changes will be lost every time you install or update any extension.
A more reliable solution would be to use the Flarum frontend content extender, and loop though $document->head
, find the javascript block for Matomo and perform a string modification on it.