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>
