Releases: hakimio/ngx-google-analytics
Releases · hakimio/ngx-google-analytics
15.0.0
GA4support.- Updated Angular to
v16and dropped support for older versions. - Dropped
rxjsv6support. Now onlyrxjsv7is supported. NgxGoogleAnalyticsModule.forRoot()andNgxGoogleAnalyticsRouterModule.forRoot()were replaced byprovideGoogleAnalytics()andprovideGoogleAnalyticsRouter()to set up library's providers.- All directives are now standalone and can be imported separately or used as
hostDirectivesin other directives. GoogleAnalyticsServicemethods 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'
}
});