Skip to content

blue-cardinal/ngx-google-analytics

Repository files navigation

NgxGoogleAnalytics

This package provides a module that injects the Google Analytics tag manager script into your Angular project.

It provides some guard rails against including the tag manager script in a dev environment.

How to use

Include the ngx-google-analytics module in your AppModule:

@NgModule({
    imports: [
        NgxGoogleAnalyticsModule.forRoot({
            trackingCode: 'YOUR_TRACKING_CODE',
        }),
    ]
})
export class AppModule { }

About

Google Analytics library for Angular projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published