Recording API

Get information such as URL, pause & resume recording.

Variables

We prepared for you some variables with specific indentificators. You might find the playUrl the most useful because it provides a link to the session recording.

VARIABLEDESCRIPTIONEXAMPLE
playUrlRecording URLhttps://app.smartlook.com/98ba963q415cccc12d7b9632/recordings/player/77EWaC_oP9Q/PS45qdBVkhn
sessionIdSession IDa12bCDEfg
visitorIdVisitor IDAbcDeFGhi
recordIdRecording IDA1B2c345dE
keyProject keya123bcd4e56ab123b3456789b12ab1234abcde1a

Accessing variables

To access the variables, you can call them as shown in the example:

smartlook(
  function () {
    console.log(smartlook.playUrl);
    console.log(smartlook.visitorId);
  }
)

To save a session recording URL playUrl in your own service:

smartlook(
  function () {
    MyServiceToLogUrl.sendToApi(smartlook.playUrl);
  }
)

Pause and resume

Use the pause and resume methods to control recordings:

smartlook('pause')
smartlook('resume')