revolunet/angular-google-analytics

Is it possible to setAccount after module config?

Closed this issue · 3 comments

in .run or inside a controller?

Not at present. There is a lot of logic that goes into defining an account properly and all of that work is done during script injection, which can only ever happen once.

This could be changed.

What exactly is your use case requiring this?

I have a view where I send to the server a parameter from $stateParams, and then get in the response the relevant tracker id.

See #146 for an example of what you could do with the existing logic.