https://github.com/blue-cardinal/ngx-google-analytics
Google Analytics library for Angular projects.
https://github.com/blue-cardinal/ngx-google-analytics
Last synced: 3 months ago
JSON representation
Google Analytics library for Angular projects.
- Host: GitHub
- URL: https://github.com/blue-cardinal/ngx-google-analytics
- Owner: blue-cardinal
- License: mit
- Created: 2024-07-16T12:44:09.000Z (11 months ago)
- Default Branch: develop
- Last Pushed: 2025-03-04T21:57:56.000Z (3 months ago)
- Last Synced: 2025-03-04T22:31:33.096Z (3 months ago)
- Language: TypeScript
- Size: 799 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-angular - @blue-cardinal/ngx-google-analytics - 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. (Table of contents / Angular)
- fucking-awesome-angular - @blue-cardinal/ngx-google-analytics - 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. (Table of contents / Angular)
README
# 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:```ts
@NgModule({
imports: [
NgxGoogleAnalyticsModule.forRoot({
trackingCode: 'YOUR_TRACKING_CODE',
}),
]
})
export class AppModule { }
```