Custom navigation event

Log your own specific navigation event.

Custom navigation event allows for easy tracking of navigation event that happens without the actual URL in the address bar changing.

🚧

Using this API when the url in address bar is changing can result in unwanted URLs duplication in recordings

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

smartlook('navigation', url)

The url parameter can be either:

  • full location (URL) of the page
  • path portion of a URL that should start with a slash (/) character

Did this page help you?