Smartlook
Web
Getting startedIdentify visitorGDPRSensitive data protectionCustom eventsCustom event propertiesCustom click propertiesCustom navigation eventRecording APIError logging
SDK Installation
SDK Conceptual
SDK API reference
SDK Cookbooks
SDK Integrations
REST API (beta)

Recording API

Get information such as URL, pause & resume recording, ...

Variables

We prepared for you some variables with specific indentificators. The most useful one will be recording URL as it gives you a link to see and play given recording.

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

Access variables

This example shows a code how it can look in a console.

<script>
smartlook(
function () {
console.log(smartlook.playUrl);
console.log(smartlook.visitorId);
}
);
</script>

Now let's say you want to save a recording URL (playUrl) in your own service.

<script>
smartlook(
function () {
MyServiceToLogUrl.sendToApi(smartlook.playUrl);
}
);
</script>

Pause & resume

Use pause and resume methods to control recording.

<script>
smartlook('pause');
</script>
<script>
smartlook('resume');
</script>