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

redux-beacon

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-beacon

Analytics integration for Redux and ngrx/store

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33K
increased by3.06%
Maintainers
1
Weekly downloads
 
Created
Source

Analytics integration for Redux and ngrx/store

CircleCI npm version license

npm install --save redux-beacon

How it works

Rendux-Beacon provides a way to map your Redux or ngrx actions to analytics events. Once generated, Redux-Beacon sends the analytics events to a given target (e.g. Google Analytics).

Analytics events are defined in an event definition, and mapped to actions in an event definitions map:

// Event Definition
const pageView = {
  eventFields: action => ({
    hitType: 'pageview',
    page: action.payload,
  }),
};

// Event Definitions Map
const eventsMap = {
  LOCATION_CHANGE: pageView,
}

With the above event definitions map, Redux-Beacon will create a pageView event whenever an action with type LOCATION_CHANGE is fired, then it will push the generated event to a given target (e.g. Google Analytics).

Quick Start

Targets

Redux-Beacon provides prebuilt targets for some popular analytics services:

Docs

Check out the project site for API docs, tutorials, examples and more.

Keywords

FAQs

Package last updated on 12 Jan 2017

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