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

0.2.0 • Public • Published

Project logo

gtag-helper

Status GitHub Issues GitHub Pull Requests License


gtag.js class helper with typescript

📝 Table of Contents

🎈 Usage

npm i gtag-helper
import GtagHelper from 'gtag-helper';

const gtag = new GtagHelper(options.GA_MEASUREMENT_ID, { noInit: true });

const options: GtagConfigOptions = {
  send_page_view: true;
  page_path: YOUR_PATH;
}

gtag.config(options);
// you can easily add this to your SPA router changed event.
gtag.pageView();

✍️ Authors

Readme

Keywords

Package Sidebar

Install

npm i gtag-helper

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

40.4 kB

Total Files

17

Last publish

Collaborators

  • yoyoys