https://github.com/angeeks/gtag
Yet another gtag util with angular.
https://github.com/angeeks/gtag
angular google-analytics npm
Last synced: 20 days ago
JSON representation
Yet another gtag util with angular.
- Host: GitHub
- URL: https://github.com/angeeks/gtag
- Owner: angeeks
- Created: 2018-05-28T15:36:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-01T17:42:58.000Z (about 8 years ago)
- Last Synced: 2025-10-04T02:25:39.817Z (9 months ago)
- Topics: angular, google-analytics, npm
- Language: TypeScript
- Homepage: https://angeeks.github.io/gtag
- Size: 229 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gtag
[](https://travis-ci.org/angeeks/gtag)
[](https://www.npmjs.com/package/@angeeks/gtag)
Yet another gtag util with angular.
# This got simpler install process
```
npm i -P @angeeks/gtag
```
```typescript
// module.ts
import { GtagModule } from '@angeeks/gtag';
@NgModule({
imports: [
GtagModule
],
providers: [
{ provide: GtagID, useValue: 'UA-XXXXX-X' }
]
})
// component.ts
import { Gtag } from '@angeeks/gtag';
class SomeComponent {
constructor(private gtag: Gtag) {
gtag.event('some-component.triggered');
}
}
```
# More about gtag
[Gtag](https://developers.google.com/gtagjs/reference/event)