Skip to end of banner
Go to start of banner


Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

We do not have an integration to record the sessionCam replay link directly, but by using the following script it is possible to make this data available for our surveys to pick up. This article will explain how to get the data and how to add it to the feedback that your customers leave.


Make sure that both the Mopinion deployment script and the sessionCam script are being loaded on the page. The following code must also be added to the page. This can be done using a tag manager or by hosting this script and then linking to it.

The code snippet

// Global object to keep track of sessionCam data
var mopSessionCam = {};
mopSessionCam.sessionId = '';
mopSessionCam.sessionCamReplayLink = '';

// Use SC recorder data if already loaded
  if (window.sessionCamRecorder) {
    mopSessionCam.sessionId = window.sessionCamRecorder.sessionId();
    mopSessionCam.sessionCamReplayLink = `${window.sessionCamRecorder.sessionId()}`

scsessionstarted = function(sc) {
// update keys on global object when sessionId becomes available after initialization of this script
    mopSessionCam.sessionId = sc.sessionId;
    mopSessionCam.sessionCamReplayLink = `${sc.sessionId}`;
if(!window.sessioncamConfiguration) {
window.sessioncamConfiguration = new Object();

sessioncamConfiguration.notifications = [{
event: 'session/started',
listener: scsessionstarted

Website data element

In the surveys that you want to enrich with the sessionCam replay data, you’ll need to add a website data element.

This website data element should listen to the JS variable mopSessionCam.sessionCamReplayLink:

You can also add the sessionCam sessionId by adding the mopSessionCam.sessionId as a separate JS variable datapoint.

Feedback result

If there is a sessionCam sessionId when a user leaves feedback the following link will be created and added to the feedback item if the above steps have been implemented.

  • No labels