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');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    6
    • latest

Version History

Package Sidebar

Install

npm i gaw

Weekly Downloads

6

Version

0.0.4

License

MIT

Last publish

Collaborators

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