SiteCatalyst plugin for react-redux-analytics
Features
- Track PageView by s.t() with custom variables
- Track Custom Event by s.tl() tracking with custom variables
- Set analytics variables to s object on PageView and Custom event tracking
Installation
npm install --save react-redux-analytics
Getting Started
1. Register Middleware
place SiteCatalystMiddlware just after AnalyticsMiddleware
const sConfig = s_account: '[[YOUR S_ACCOUNT]]' //required s_code: visitorNamespace: '[[YOUR VISITOR NAMESPACE]]' //required trackingServer: '[[YOUR TRACKING SERVER]]' //required ... //other s_code options const enhancer =
2. Register Reducer
https://www.npmjs.com/package/react-redux-analytics
3. Track Page View on componentDidMount
https://www.npmjs.com/package/react-redux-analytics
4. Track Custom Event on Click
https://www.npmjs.com/package/react-redux-analytics