revolunet / angular-google-analytics

Google Analytics tracking for your AngularJS apps
MIT License
652 stars 172 forks source link

set function to support multiple trackers in single call #138

Open justinsa opened 8 years ago

justinsa commented 8 years ago

At present, _set purposefully only supports a single named tracker per call. The justification originally was backwards compatibility and it isn't an action you want happening on every tracker.

One solution for this is to provide a sentinel value for trackerName (e.g., *) that would be used to tell the method to use the _gaMultipleTracker method instead of the _ga method.