Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Pass additional parameters on init #71

Open
iamcam opened this issue Jan 30, 2022 · 1 comment
Open

Feature: Pass additional parameters on init #71

iamcam opened this issue Jan 30, 2022 · 1 comment

Comments

@iamcam
Copy link

iamcam commented Jan 30, 2022

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 -->
@revolunet
Copy link
Member

Hello @iamcam PR welcome if you're still in need for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants