Skip to content

universal gtag.js helper come with typescript support

License

Notifications You must be signed in to change notification settings

yoyoys/gtag-helper

Repository files navigation

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

About

universal gtag.js helper come with typescript support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published