Custom navigation event

Log your own specific navigation event.

Custom navigation events allow for easy tracking of navigation events that occur without the URL in the address bar changing.

🚧

Using this API when the URL in the address bar changes can result in unwanted URL duplication in recordings

To use custom navigation, insert the following JavaScript code into your website:

smartlook('navigation', url)

The url parameter can be either:

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

Did this page help you?