0.0.1 • Published 6 years ago

@angeeks/gtag v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Gtag

Build Status npm version

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

Gtag