gaw
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

gaw

simple google analytics wrapper

Usage

npm install gaw
import { Tracker } from 'gaw';
const tracker = Tracker.init({ trackingId: 'UA-XXXX-Y' });
if (traditional_web_page) {
    tracker.trackCurrentPage();
}
if (single_page_application) {
    tracker.startSession('pageview');
    tracker.trackPage('/blabla');
    // tracker.endSession('pageview');
}
tracker.trackEvent('Carousel', 'slide to left');

Readme

Keywords

none

Package Sidebar

Install

npm i gaw

Weekly Downloads

28

Version

0.0.4

License

MIT

Last publish

Collaborators

  • link00
  • oeepak
  • ryse-kim
  • d-o-d-o
  • minkb01
  • disjukr