4.0.0 • Published 7 years ago
@mapbox/segmentio-insert v4.0.0
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