nicholas-saladee / segment-context-middleware

A solution to persist data across a session and enrich the Segment context object.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation:

Installation is as easy as:

  • Import or load the file.
  • Call _register(analytics) BEFORE analytics.load("write key") is called.
  • That's it, you're done!

Usage:

The middleware is easily configurable:

  • To add additional properties to the context object, simply add a function to the context configuration under the specified property name.
  • To add additional integration data, simply add a function to the integration configuration under the specified property name.

Maintenance:

This project is currently under active maintenance. Pull requests will be accepted by clients with a known installation.

About

A solution to persist data across a session and enrich the Segment context object.

License:MIT License


Languages

Language:TypeScript 100.0%