Eventvisor

Third-party integrations

module-segment-browser

Segment Browser module allows integrating Eventvisor SDKs with Segment in your browser-based applications.

Installation

Install with npm in your application:

Command
$ npm install --save \
@eventvisor/sdk \
@eventvisor/module-segment-browser

Setting up

And then set it up when initializing the SDK:

import { createInstance } from "@eventvisor/sdk";
import { createSegmentBrowserModule } from "@eventvisor/module-segment-browser";
const eventvisor = createInstance({
modules: [
createSegmentBrowserModule({
analytics: analytics, // your Analytics.js instance
}),
]
});

Usage example

In your destination definition:

destinations/analytics.yml
# ...
transport: segment-browser
Previous
New Relic
Next
Sentry