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.
| VARIABLE | DESCRIPTION | EXAMPLE |
|---|---|---|
| playUrl | Recording URL | https://app.smartlook.com/98ba963q415cccc12d7b9632/recordings/player/77EWaC_oP9Q/PS45qdBVkhn |
| sessionId | Session ID | a12bCDEfg |
| visitorId | Visitor ID | AbcDeFGhi |
| recordId | Recording ID | A1B2c345dE |
| key | Project key | a123bcd4e56ab123b3456789b12ab1234abcde1a |
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')
Updated over 3 years ago
