Tags
Add custom tags to your sessions for better filtering and organization. Tags can also be used to track events from other platforms like Segment and PostHog.
Overview of Tags
Tags in Decipher allow you to add custom metadata to your sessions, making it easier to filter, search, and organize session replays. By using the setExtras
method from the Sentry SDK, you can attach key-value pairs to your sessions that will be available for filtering within Decipher.
These key-values can be arbitrary and you will be able to filter replays by these tags in Decipher.
Why Tags?
- Targeted Analysis: Focus on specific user segments or feature implementations
- Issue Prioritization: Quickly identify which segments are most affected by issues
- Customer Support: Filter sessions by company to assist specific customers
- Feature Adoption: Track which segments are using new features
Adding Tags to Your Sessions
To add custom tags to your sessions, use the setExtras
method from the Sentry SDK. This method accepts an object containing key-value pairs that will be attached to the current session.
Integrating with Segment
If you’re using Segment for analytics, you can easily integrate it with Decipher to enrich your session data:
Best Practices
- Avoid sensitive data: Don’t include PII or sensitive information in tags
- Combine with user identification: Use tags alongside
setUser
for the most comprehensive session data
That’s it! With just a few lines of code, you can add powerful filtering capabilities to your use of Decipher.