matomo-next
matomo-next copied to clipboard
Feature: Pass additional parameters on init
It might be nice to have one more optional init
param to take an array of push() parameters that's injected into the initialization script. This would be helpful where matomo configs call for additional settings outside the defaults (eg, setting cookie policy for subdomains).
I imagine something along the lines of ...
init(
...,
additionalPushParameters: [
['foo', 'bar'],
['baz', 'boop']
]
);
...to build:
<!-- Matomo config -->
...
push(['foo', 'bar']);
push(['barz', 'boop']);
...
<!-- end Matomo config -->
Hello @iamcam PR welcome if you're still in need for this