Star us on GitHub
Star
Welcome to highlight.io
Company
Mission & Values
Compliance & Security
Open Source
Getting Started
Overview
Fullstack Mapping
Backend / Server
Frontend / Client
Fullstack Frameworks
Product Features
Session Replay
Error Monitoring
General Features
Logging
Integrations
Integrations Overview
Amplitude Integration
ClickUp Integration
Discord Integration
Electron Support
Front Integration
Height Integration
Intercom Integration
Linear Integration
Mixpanel Integration
Segment Integration
Slack Integration
Vercel Integration
Tips
Content-Security-Policy
Local Development
Monkey Patches
Performance Impact
Proxying Highlight
Session Search Deep Linking
Troubleshooting
Upgrading Highlight
Highlight.io Changelog
Changelog 12 (02/17)
Menu
Docs / Highlight Docs / Integrations / Segment Integration

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