@angeeks/gtag
v0.0.1
Published
Angular plus gtag.js
Downloads
4
Maintainers
Readme
Gtag
Yet another gtag util with angular.
This got simpler install process
npm i -P @angeeks/gtag
// 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');
}
}