website logo
⌘K
Welcome to Relicx
How does Relicx work ?
Benefits of Relicx
Getting Started
Sign-up
Instrumenting Your App
Security and Privacy
Application & Environments
Adding Application
Adding a new Test Environment
SDK
getSessionUrlCallback()
identify()
Log()
sessionVars()
sessionLabels()
User Sessions
Session Replay and Detail
Developer Console
Automatic Release Validation
How Does Relicx Release Validation Work?
Benefits of Relicx Release Validation
Running Release Validation
Interpreting the results
Adding Tests
Smart Tests
Interactive Test Authoring
Generating Tests from User Sessions
Editing Tests
Running Tests
Test Run Page
Test Suite
CI/CD Integration
Notifications
Slack
Email
Additional Resources
Importing tests into Relicx
Testing Firewall Protected Apps
Timezones
How-to-Guides
Instrumenting Your App
Convert a session with errors to test
Video Resources
Changelog
Docs powered by
Archbee
SDK

getSessionUrlCallback()

4min

This API allows Relicx session replay URL to be programmatically integrated with external monitoring, analytics, and online customer support systems.

JS
|
var sessionUrl;
relicxSDK.getSessionUrlCallback((s) => {
    sessionUrl = s;
});


Reference Implementation

Relicx application uses the above functionality to provide in-product support. When the user clicks on the chat window on the lower right-hand side, the user's current session replay URL is attached to the support ticket. We provide a getSessionUrlCallback function which takes a callback as a parameter. The callback is of the form: (string) => void. The callback is called when the relicx SDK is initialized.

This done via the following code snippet

JS
|
var sessionUrl;
relicxSDK.getSessionUrlCallback((s) => {
  sessionUrl = s;
});
window.Beacon("session-data", {
  "Session URL": sessionUrl,
});

Document image


Customer support can now view the session replay by clicking on the attached session replay URL link.

Document image


Here is a quick video demo of how the integration works for Relicx





Updated 09 Aug 2023
Did this page help you?
PREVIOUS
SDK
NEXT
identify()
Docs powered by
Archbee
TABLE OF CONTENTS
Reference Implementation
Docs powered by
Archbee