Skip to content

mapbox/segmentio-insert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

segmentioInsert

Load segment.io snippet on this page, given an apiToken as a string. This does the same thing as the official snippet, but is designed for usage with browserify and hardcodes https:// instead of matching the page's scheme.

Parameters

  • apiToken string

Examples

var segmentInsert = require('@mapbox/segmentio-insert')
segmentInsert('my-api-token');

Returns analytics

About

insert segment.io tracking code on a page

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published