-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ga): expose ga settings in ga provider #87 #281
fix(ga): expose ga settings in ga provider #87 #281
Conversation
implement a 'setAdditionalAccountNames' method in GA provider, which sets the account names as the 'additionalAccountNames' property of 'angulartics2.settings.ga' closes angulartics#87
This is an updated re-write of #88 |
Does this have an advantage over importing angulartics2 and setting it directly? this.angulartics2.settings.ga.additionalAccountNames = ['1', '2'] |
@scttcper I didn't realize you can access the Google Analytics provider settings from the main Angulartics2 service. Now that I do, this PR is kind of pointless. However, it does provide one nice advantage, in that before I only had to inject my provider into my main AppComponent, and now, I have to the inject the Provider and the Angulartics2 Service. |
But then every setting on every provider will want a setter in core and it'll just never end. maybe could make the ga specific settings public inside of the provider. |
Yeah, true, that's a good idea. I can take a look at implementing that. |
…ountNames" This reverts commit f8e6f84.
… provider add a public instance member 'settings' on the ga provider. It is just a reference to the 'ga' settings on the core angulartics2 service closes angulartics#87
🎉 This PR is included in version 7.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
additionalAccountNames
onsettings
config object. Many trackers on one page #87closes #87