Welcome to Highlight
Getting Started
Overview
Backend / Server
Client / Frontend
Fullstack Frameworks
Tips
Content-Security-Policy
Local Development
Monkey Patches
Performance Impact
Proxying Highlight
Session Search Deep Linking
Troubleshooting
Upgrading Highlight
Session Replay
Console Messages
HTML iframe Recording
Identifying Users
Live Mode
Network DevTools
Privacy
Rage Clicks
Recording Network Requests and Responses
Session Sharing
Session Shortcut
Tracking Events
Versioning Sessions
Error Monitoring
Grouping Errors
Sourcemaps
Versioning Errors
Product Features
Alerts
Analytics
Canvas
Comments
Environments
Frontend Observability
Keyboard Shortcuts
Performance Data
Segments
Session Search
Team Management
User Feedback
Web Vitals
WebGL
Integrations
Amplitude Integration
Clearbit Integration
Electron Integration
Front Plugin
Intercom Integration
Linear Integration
Mixpanel Integration
React.js Integration
Segment Integration
Sentry Integration
Slack Integration
Vercel Integration
highlight.run Changelog
5.0.0
5.0.1
5.1.0
5.1.1
5.1.2
5.1.3
5.1.4
5.1.5
Menu
Docs / Integrations / Amplitude Integration

Amplitude Integration

We've made it easy to use Amplitude with Highlight. When you initialize Highlight, you can set your Amplitude API Key.

H.init('<YOUR_ORGANIZATION_ID>', { integrations: { amplitude: { apiKey: '<AMPLITUDE_API_KEY>', }, }, })
Copy
API
logEvent()

Calling H.track() will forward the data to Amplitude's logEvent().

H.track('signup_button_clicked', { firstTime: true, impressions: 10, }) // The Highlight track call is equivalent to this logEvent call amplitudeClient.logEvent('signup_button_clicked', { firstTime: true, impressions: 10, // This property is added by Highlight. This shows you the session where this event happened. highlightSessionURL: 'https://app.highlight.run/sessions/123', })
Copy
setUserId() and identify()

Calling H.identify() will forward the data to Amplitude's setUserId() and identify().

H.identify('eliza@corp.com', { planType: 'premium', verified: false, }) // The Highlight identify call is equivalent to setUserId and identify. amplitudeClient.setUserId('eliza@corp.com') amplitudeClient.identify( new amplitude.Identify().set('planType', 'premium').set('verified', false), )
Copy