ngx-matomo icon indicating copy to clipboard operation
ngx-matomo copied to clipboard

HttpRequest for trackerUrl and siteId

Open lousley opened this issue 2 years ago • 7 comments

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?

lousley avatar Jul 21 '22 06:07 lousley

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

aicokleinovink avatar Jul 21 '22 14:07 aicokleinovink

@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.

lousley avatar Jul 22 '22 08:07 lousley

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 avatar Jul 22 '22 09:07 Arnaud73

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

Arnaud73 avatar Aug 01 '22 21:08 Arnaud73

@Arnaud73 yes that would be nice

lousley avatar Aug 08 '22 11:08 lousley

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

Waterstraal avatar Sep 12 '22 09:09 Waterstraal

Is there any progress on this issue?

olafvanv avatar Apr 09 '24 12:04 olafvanv