Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 478 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 478 Bytes

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 { }