angulartics / angulartics-google-analytics

Google Analytics plugin for Angulartics
MIT License
133 stars 86 forks source link

Can not dynamically set Analytics property key #121

Open ghost opened 3 years ago

ghost commented 3 years ago

I cant get the current setup to work and there is nothing in the documentation for this.

  1. Load App and inject $analyticsProvider
  2. Ajax request to backend to retrieve google api key
  3. Fill in Analytics API key trough $analyticsProvider

It seems it only gives me the option to put it in the head of my index.html.