Skip to content

nicholas-saladee/segment-context-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks