New Relic
Get a Zipy session URL against Browser Interactions in New Relic
Step 1. Add the below code in <head> tag on your site.
<script>
const getCurrentZipySessionURL = async () => {
return await new Promise(function(resolve, reject) {
let i = 0;
const _interval = setInterval(() => {
let zipySessionUrl = (window)?.zipy?.getCurrentSessionURL();
if(zipySessionUrl){
resolve(zipySessionUrl);
clearInterval(_interval);
}
else{
i++;
if(i >= 4){
reject("Some problem occurred while loading zipy.");
clearInterval(_interval);
}
}
},1500);
});
}
getCurrentZipySessionURL()
.then(zipySessionUrl => {
newrelic.setCustomAttribute('zipy_session_url',zipySessionUrl);
})
.catch((e) => {
console.log(e);
});
</script>Step 2. Find Zipy session url in New Relic.


Last updated