Arnaud73 / ngx-matomo

Matomo (aka. Piwik) web analytics for Angular applications
MIT License
102 stars 46 forks source link

HttpRequest for trackerUrl and siteId #88

Open lousley opened 2 years ago

lousley commented 2 years ago

Hi there I am currently migrating from matomo 0.1.4 to 1.0.1. In my project we get the trackerUrl and the siteId via an HttpRequest. So far i could solve this with the MatomoInjector. How can I integrate this into the forRoot? Is there any idea?

aicokleinovink commented 2 years ago

I had the same issues with a different matomo package, but I think they do quite the same. See https://github.com/EmmanuelRoux/ngx-matomo/issues/31 for more information

lousley commented 2 years ago

@aicokleinovink: thank you very much for your answer. Unfortunately this does not work for my project. But I am eagerly waiting for the implementation mentioned here: https://github.com/EmmanuelRoux/ngx-matomo/issues/54 and would then switch to this repo.

Arnaud73 commented 2 years ago

Hi Currently, there is no clean solution to your problem with the current version of this module. However, your request is valid and could have a nice solution within the module. Let me think about it.

Arnaud73 commented 2 years ago

@lousley, I guess you may want to fetch the complete configuration for the module from a distant server, not just the scriptUrl and siteId?

lousley commented 2 years ago

@Arnaud73 yes that would be nice

Waterstraal commented 2 years ago

Running into the same issue; please support dynamic configurations :).

For inspiration, you can take a look at the Deferred (asynchronous) configuration that this alternative Matomo library provides: https://github.com/EmmanuelRoux/ngx-matomo#deferred-asynchronous-configuration

olafvanv commented 7 months ago

Is there any progress on this issue?