- 15.0.0
- 14.0.0
- 13.0.1
- 13.0.0
- 12.0.0
- 11.2.1
- 11.2.0
- 11.1.0
- 11.0.0
- 10.0.0
- 9.2.0
- 9.1.1
- 9.1.0
- 9.0.1
- 9.0.0
- 8.1.0
GA4
support- Updated Angular to
v16
and dropped support for older versions - Dropped
rxjs
v6
support. Now onlyrxjs
v7
is supported. NgxGoogleAnalyticsModule.forRoot()
andNgxGoogleAnalyticsRouterModule.forRoot()
are now replaced byprovideGoogleAnalytics()
andprovideGoogleAnalyticsRouter()
to set up library's providers- All directives are now standalone and can be imported separately or used as
hostDirectives
in other directives GoogleAnalyticsService
methods now use options objects to specify additional arguments instead of a long list of arguments with some of the argumentsundefined
.
Thanks, @Spejik, for the implementation.
Before:
this.gaService.pageView('/test', 'Test the Title', undefined, {
user_id: 'my-user-id'
});
After:
this.gaService.pageView('/test', {
title: 'Test the Title',
options: {
user_id: 'my-user-id'
}
});
- Added additional optional parameters
- Update to support angular 14 (#96)
- Bump Karma
- Bump Jasmine
- Bump RXJS to 7.4.0
- Migrate from TSLint to ESLint
- Bump to ng v13
- Bump to ng v12
- Allow override initial commands
- Fixed parameter initCommands on NgxGoogleAnalyticsModule.forRoot() #46
- Allow directive gaBind to trigger on any kind of event. #43
- Using enum instead of string type (#38)
- Bump to ng v11
- Bump to ng v10
- Add include/exclude rules feature on NgxGoogleAnalyticsRouterModule.forRoot() to filter witch pages should trigger page-view event.
- Remove
peerDependencies
from package.json to do not trigger unnecessary warnings onnpm install
command.
- [Bugfix] Set nonce using
setAttribute
- Add nonce
- Fix typos
- Rename i-google-analytics-command.ts
- Created set() method at GoogleAnalyticsService (https://developers.google.com/analytics/devguides/collection/gtagjs/setting-values);
- Changed gtag() method signature at GoogleAnalyticsService to accept anything;
- Added a filter to remove undefined values to rest parameter on gtag() fn;
Just bump to Angular ^9.x
- Created and Updated unit tests on library project;
- Created an automated workflow to run unit tests on each PR;
- Created TypeDocs on all Services, Modules and Directives to help you guys to use this lib;
- Removed bad practices on access Window and Document objects directly by Angular Services. I decided to create Injection Tokens to resolve those Browser Objects.;
- Added some validations to ensure it is a Browser Environment;
- Added cleanup code on NgxGoogleAnalyticsRouterModule. In short, we now unsubscribe Router events when bootstrap app is destroyed;
- Added a new Settings property
ennableTracing
to log on console Errors and Warnings aboutgtag()
calls; - Now we have
InjectionToken
for everything. You can replace all our default settings;