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 / Product Features / Session Replay / Versioning Sessions

Versioning Sessions

When using Highlight, it can be useful to know which app version a session is recorded on. Highlight helps you by letting you tag which app version a session was recorded on.

To tag your sessions with a version, you can set the version field in the H.init().

import App from './App' import { H } from 'highlight.run' H.init('<YOUR_PROJECT_ID>', { version: process.env.REACT_APP_VERSION, }) ReactDOM.render(<App />, document.getElementById('root'))
Copy
Versioning Errors

version is used for errors too, see Versioning Errors for more information.