Hi,
I am trying to identify contacts inside of HubSpot Custom Behvarioal Events - the stanrad way HS does it is via form submission. Unfortunately I can’t make 500.000 contacts fill out a form, so what I am trying to do is triger an API identifier per this source on my logins.
As my website is not a HS website, nor is my login page a form, I am trying to trigger it via this code through GTM.
"if (window.USER && window.USER.EMAIL) {
var _hsq = window._hsq = window._hsq || [];
_hsq.push(["identify",{
email: window.USER.EMAIL
}]);
}"
I am having issues how to use GTM to deploy this trigger - should I add this JS to the already existing HS tracking code, or any other method?