I am working with Google Support to get Enhanced Tracking set up on our Hubspot landing pages to work with our Google Ads account.
Below is the code that needs to be installed within the footer of our “Thank You” landing page; however, Google support mentioned that we need to replace ‘yourEmailVariable’ with whatever our email variable is. I am wondering if someone could advise on what the email variable would be that I need to input here? I have tried contact.email but that is not correct.
<script>
dataLayer.push({
‘event’:‘form_submit’,
‘enhanced_conversion_data’: {
“email”: ‘yourEmailVariable’ // get User email dynamically //
}
})
</script>
I implemented the alternate solution and just tested the form submission and noticed that it is showing the email on URL after submission but not the correct email id.
Hi @Cpuller! I’m running into the same issue. I think that the email variable is the same thing as the internal name of the contact property. Going to be trying this on my end. Thanks!