Star us on GitHub
Star
Menu

Segment Integration

If you have an existing codebase calling Segment's identify() and track() methods, then you won't have to call Highlight's. Highlight will automatically forward data sent to Segment to your Highlight sessions.

We are currently working with Segment on an official integration where you can enable, configure, and send data to Highlight. If you'd like to use this, then upvote this feature request.

Enabling the Segment Integration

H.init('<YOUR_PROJECT_ID>', { enableSegmentIntegration: true, })
Copy

Segment's identify() calls will now start forwarding to Highlight.

Enabling Track data forwarding

To forward analytics.track() calls to Highlight, you will need to use the HighlightSegmentMiddleware. This is available in the highlight.run package starting in version 2.10.0.

import { H, HighlightSegmentMiddleware } from 'highlight.run' H.init('<YOUR_PROJECT_ID>', { enableSegmentIntegration: true, }) analytics.addSourceMiddleware(HighlightSegmentMiddleware)
Copy

Searching for segment events

Searching for segment events is as easy as using the segment-event filter in the session search UI. This is what it looks like.