// A callback function that gets called when the user URL changes.
function urlChangedCallback(url: string) {
console.log('Emitted url', url);
}
Smartlook.registerUserUrlChangedListener({
userUrlChangedCallback: urlChangedCallback
});
Smartlook.registerSessionUrlChangedListener({
sessionUrlChangedCallback: urlChangedCallback
});