@angeeks/gtag
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i @angeeks/gtag

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

90 kB

Total Files

26

Last publish

Collaborators

  • speed.of.light