What you can track:

Custom events are a powerful advanced feature in Smartlook. They give you the ability to track Events that happen behind the scene and have them appear directly in the Smartlook recordings. The Custom events can then be used as filters just like all the other events which are automatically recorded on Smartlook. With Custom events you can get creative and track pretty much everything you want.

Custom events:

The code you need to insert in your site has a following format in JavaScript.

<script>
  smartlook('track', eventName, properties);
</script>

Please note that there is a slight delay between calling the API and sending any custom event to our servers.
It is not recommended to call the API right before page unload or page navigation event.

Interact with pop-up windows

You can configure an event that will fire when your user sees certain pop-up windows such as promotion alerts or upsell windows. Watch recordings to understand how your users are interacting with those pop-ups and get helpful insights to better engage your users.

<script>
  // full example with your defined variables
  var eventName = 'UserOpenUpsellWindow';
  var properties = {
    "type": "SmallDiscLimit"
  };
  smartlook('track', eventName, properties);
</script>

Parameter properties is a variable. In the case you need to display only specific information about your user, there is no need to use any other parameters in your custom event.

Have a look at this example where user reached app preset limit.

<script>
  smartlook('track', 'UserLimitReached');
</script>
Did this answer your question?