0.0.1 • Published 6 years ago
@angeeks/gtag v0.0.1
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');
}
}
More about gtag
0.0.1
6 years ago