Contents

Custom events

Create your own specific events for tracking.

Maybe you already have on your site our API code which can Identify visitor. In that case custom events information (custom user actions) will be displayed directly in recordings. Create your own events and we will track them for you.

What you can track

Custom events allow you to track user interactions other than clicks, page views (URL) and text inputs. With custom events you can get creative and track pretty much everything you want.

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

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

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 case you need to display only a 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>