Can someone provide more detail on the hubspotutk user token?
Specifically, approx how many characters long is it? Where can I find it in my browser? etc
Can someone provide more detail on the hubspotutk user token?
Specifically, approx how many characters long is it? Where can I find it in my browser? etc
Hi @PeterS72,
If you’re accessing a page that has the HubSpot tracking code you should be able to find this by opening up the Inspect tool and typing in __hsUserToken in the Console. Another method, based on this Stack Overflow response, is to run a getCookie function:
function getCookie(name) {
const value = `; ${document.cookie}`;
const parts = value.split(`; ${name}=`);
if (parts.length === 2) return parts.pop().split(';').shift();
}
getCookie('hubspotutk')
Checking for the length it seems it runs 32 characters long:

I’ve tested this across a few sites with the tracking code on them and this seems consistent. Let me know if there’s anything else I can help clarify!
Thank you for the question and the response! I was wondering that myself not too long ago.