Hubspot Offline Conversions Troubleshoot

ALuciaMorales
Member

I noticed that a contact, also known as a "lead", appeared in my Hubspot dashboard for January, but it did not reflect in my Google Ads interface. I am currently attempting to troubleshoot this issue. Upon checking, I realized that the pixel was installed in 2020, but it doesn't match the one we have on our landing pages or the one in Hubspot. However, Hubspot says that it's "working". 

 

I am unsure how to verify if it's working correctly. Is there a step that I am missing to ensure that all leads are imported into my Google Ads account? I'm new to Hubspot, so any help would be appreciated. Thank you!

0 Upvotes
1 Accepted solution
trevordjones
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Hi @ALuciaMorales - Here is a loom video showing you how to add the custom HTML tag to your account.  No need to customize the code you can add it as-is.

 

https://www.loom.com/share/9c17df2cdfda4c17b95155888f0e9e53?sid=cb1999d7-9410-4dff-b645-1d30a420b9bb

- Trevor
If my post solves your problem, please accept it as a solution.

 

Trevor Jones

Consultant II

Process Pro Consulting
mobilePhone
(207) 939-7689
emailAddress
tjones@processproconsulting.com
website
processproconsulting.com
address
Remote from Maine
linkedin

View solution in original post

0 Upvotes
4 Replies 4
ALuciaMorales
Member

Hey Trevor, thanks a ton for the info! Can you help me out with one more thing? Where do I find the instructions to add the Hubspot form listener in GTM? Do I need to customize the code, or will it work if I copy and paste it?

 

Also, I'm a bit confused about the Google Ads Conversion tracking tag needing a trigger. Doesn't it automatically get pulled? Thanks again for your help!

0 Upvotes
trevordjones
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Hi @ALuciaMorales - Here is a loom video showing you how to add the custom HTML tag to your account.  No need to customize the code you can add it as-is.

 

https://www.loom.com/share/9c17df2cdfda4c17b95155888f0e9e53?sid=cb1999d7-9410-4dff-b645-1d30a420b9bb

- Trevor
If my post solves your problem, please accept it as a solution.

 

Trevor Jones

Consultant II

Process Pro Consulting
mobilePhone
(207) 939-7689
emailAddress
tjones@processproconsulting.com
website
processproconsulting.com
address
Remote from Maine
linkedin
0 Upvotes
trevordjones
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Hi @ALuciaMorales ,

 

You need to set up a HubSpot forms listener in Google Tag Manager so that Google sees a HubSpot form fill as a conversion.  

 

Here is the Custom HTML Tag you need for this:

 

<script type="text/javascript">
window.addEventListener("message", function(event) {
if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') {
window.dataLayer.push({
'event': 'hubspot-form-success',
'hs-form-guid': event.data.id
});
}
});
</script>

 

You'll also need a Google Ads Conversion Tracking Tag.

 

Conversion tracking will need a trigger.  You'll use this:

 

GA4 Trigger.png

 

 

If you want to see these in GA4, you'll also want a GA4 Event:

GA4 Event.png

And the same trigger you used for Google Ads.

 

- Trevor
If my post solves your problem, please accept it as a solution.

 

Trevor Jones

Consultant II

Process Pro Consulting
mobilePhone
(207) 939-7689
emailAddress
tjones@processproconsulting.com
website
processproconsulting.com
address
Remote from Maine
linkedin
0 Upvotes
DewanCodes
Member

I already have added a tag in Google tag manager, and following script added in that tag for 'Hubspot Listener - Custom HTML'. But still I see these cookies (__cf_bm and _cfuvid) as third-party in Google PageSpeed Insights report. 

 

<script>
window.addEventListener("load", function() {
window.addEventListener("message", function(event) {
if (event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') {
window.dataLayer.push({
'event': 'hubspot-form-success',
'hs-form-guid': event.data.id
});
}
});
});
</script>

 

 

third-party-cookies-hubspot.png

 

Any help will be highly appreciated.

0 Upvotes