GoogleAnalyticsGtag
Setup
npm install --save @redux-beacon/google-analytics-gtag
Usage
import GoogleAnalyticsGtag from '@redux-beacon/google-analytics-gtag';
// Create or import an events map.
// See "getting started" pages for instructions.
const trackingId = 'REPLACE_WITH_YOUR_TRACKING_ID';
const ga = GoogleAnalyticsGtag(trackingId);
const gaMiddleware = createMiddleware(eventsMap, ga);
const gaMetaReducer = createMetaReducer(eventsMap, ga);Event Definitions
pageView
Docs:
event
Docs:
Last updated