GoogleAnalyticsGtag
Setup
Sign up for Google Analytics and create a new web property.
Add the
gtag.js
tracking snippet to your site.Install the target:
Usage
Event Definitions
Don't see your event listed? Please submit a pull request to the Redux Beacon repository with the missing event. Use the source of the existing event-helpers
to guide your work. If you need any support feel free to make the pull request with all you're able to do. We can fill in the gaps from there.
pageView
Docs:
https://developers.google.com/analytics/devguides/collection/gtagjs/pages
The last line of the tracking snippet gtag('config', 'GA_TRACKING_ID');
hits Google Analytics with a page view that matches the first loaded route. If you're tracking page views using Redux Beacon, be sure to remove this line so the initial page load isn't recorded twice.
event
Docs:
https://developers.google.com/analytics/devguides/collection/gtagjs/events
Last updated