Custom User ID

Categories
Guide

You need to add before the Plerdy tracking code:
<script type='text/javascript' defer>
window.customPlerdyVisitorId = "ewewewewqq";
</script>

ewewewewqq – add a unique User ID, up to 64 characters.

Once installed on the site pages, the User ID will be automatically replaced in new video sessions.

2

GB
1ecde9adb5c0e8b420d212fa4

For the user who started the previous session, the ID will change automatically when the new session starts after 30 minutes.

This code can record and add user IPs to the video session:

<script defer>
fetch('https://api.ipify.org?format=json')
.then(function(response) {
return response.json();
})
.then(function(data) {
window.customPlerdyVisitorId = data.ip;
})
.catch(function(error) {
console.error('Error fetching user IP:', error);
});
</script>

Was this helpful?

Leave a reply for "Custom User ID"

Your email address will not be published. Required fields are marked *