Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@recruit-tech/react-redux-analytics-sitecatalyst

Package Overview
Dependencies
Maintainers
8
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@recruit-tech/react-redux-analytics-sitecatalyst

SiteCatalyst plugin for react-redux-analytics

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
8
Weekly downloads
 
Created
Source

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

import { applyMiddleware } from 'redux'
import { analyticsMiddleware } from 'react-redux-analytics'
import { siteCatalystMiddlware } from 'react-redux-analytics-sitecatalyst'

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 = applyMiddleware(...,
  analyticsMiddleware({
    reducerName: 'analytics',
    ...
  }),
  siteCatalystMiddlware({
    s_gi: (s_account) => window.s_gi(s_account), // or import s_code.js as a node module
    config: sConfig,
   	...
  })
)

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

API

siteCatalystMiddleware

Keywords

FAQs

Package last updated on 09 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc