Live Chat API Identify

I’m attempting to identify our logged in users with zero success. I’ve read the docs and numerous community post to find no solution as of yet. Below is the current code with a generic email for testing purposes only. You can find our testing stage site here >> https://hoochware-sales-stage.azurewebsites.net/

 <!-- Load Hubspot Script -->
 <script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/6204666.js"></script>

 <!-- Check if HubSpot ready -->
 <script type="text/javascript">
 function onConversationsAPIReady(email) {
 var _hsq = window._hsq = window._hsq || [];
 console.log("ready: " + email)
 _hsq.push(["identify", {
 email: email
 }]);
 _hsq.push(['trackPageView']); 
 }
 function sendIdentify(email) {
 if (window.HubSpotConversations) {
 onConversationsAPIReady(email);
 } else {
 window.hsConversationsOnReady = [onConversationsAPIReady(email)];
 }
 }

 sendIdentify("user@email.com"); // hard coded for testing purpose only

</script>

Hi @SPatrick,

I hope all is well with you :grinning_face_with_smiling_eyes:

When testing this out, I was able to see that my contact got created just fine and below is a screenshot of my test:

Just to be sure, are you using your home network as your internal traffic may be excluded from your site analytics? Could you try the same test as I did and see if a contact would be created?

Wendy,

Thanks for taking the time to do a thorough test. It was our office IP address that was excluding from traffic. Thanks again!

Is the issue not the below line:

window.hsConversationsOnReady = [onConversationsAPIReady(email)];

Shouldn’t it be:

window.hsConversationsOnReady = [() => onConversationsAPIReady(email)];