0.2.0 • Published 2 years ago
gtag-helper v0.2.0
📝 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
- @yoyoys - Idea & Initial work