Report Hubspot form submissions to Facebook Pixel as conversions (for ad optimization)

Hello!

We do a lot of Facebook Ads that are optimized for conversions (in our case: Form Submissions) and in all our websites we use Hubspot Forms. Facebook needs to know when a user converts from a specific campaign to improove the targeting via the usual “standard events” like:

fbq('track', 'Lead');

But the conversions column in Facebook’s Ad Manager shows 0 conversions and the campaing can’t be optimized.

We were expecting that Hubspot automatially sends at least a ‘Lead’ event to FB, especially by providing the Facebook Pixel from Hubspot’s Facebook Ads integration. Because Hubspot form are embedded in an iframe there’s virtually no way for the site to know when a form has been submitted to sent events ourselves. Relying on “thank-you” pages has always been a source of ghost/duplicate conversion counting for us.

Does Hubspot actually do sends Facebook Pixel events on form submission and we are just doing something wrong?

Does adding the Facebook Pixel via Hubspot enables some integrations, or is just a tool to help unexpericed users?

Thanks!

Hey @svbkbrando - While we don’t natively connect the submit button to Facebook, we do have a resource on our developer’s forum on customizing the forms embed code.

If you wanted to try to customize the embed code to include the pixel, you can explore this resource: Customize form embed code.

That’s pretty weird. Hubspot is claiming to be THE sales CRM tool and basics stuff like firing conversion events to LinkedIn, Facebook, Google and GTM isn’t standard. Even our simple blogging tool www.cooala.com is firing these events by standard because you need it all day when doing online marketing with lead forms.
Should be standard without coding, guys.

Agree with you 100% Mike. Seems unreal that the user would have to jump through coding hoops to get an embedded form button to be recognized by Facebook. Can’t manage the entire customer’s journey if we can’t track conversions!

Indeed, @BD31 ! Unreal.

I agree 100% with @MikeSchwede. This should be A LOT easier to do without custom coding. @akelley can we get more resources on this? I do not have the knowledge or time to figure out the custom coding. I’m a marketing team of one.

Hey guys, did we ever get any resolution to this?

I had the same problem. I solved using Google Tag Manager:

  • Add below into a custom HTML tag
<script>
 fbq('track', 'Lead');
</script>​
  • Fire it by using the trigger set up in these instructions for how to fire a GA event on Hubspot form success.

No code needed.

Cheers,

Paul.

Thank you for this Paul - I followed the instructions you posted and this has fixed the issue for me!

Much appreciated,

Alice

Hi @PNewnes,

Thank you for sharing your solution with the Community :slightly_smiling_face:

Best,
Kristen

Hey @PNewnes

Regarding your response above, it only sends a Lead Event.

But no other parameters that would help the Pixel learn from this data and improve it’s results, correct?

Parameters such as First Name, Last name, Click ID etc in order to give Facebook a good idea of who converted so that it could optimise results going forward.

cheers

As it’s now 2024…are the above instructions still working?

Did anybody successfully get Hubsport form submissions to trigger a Facebook pixel conversion?

Can anybody please confirm whether an easier method has been implemented?

Did you ever get this to work?

The instructions for Google Tag Manager below still work.

Hey everyone… I was just searching forums with this same issue of not being able to use Facebook Event Setup Tool to track form submissions as leads, and I was able to solve it by having our web team design the form with custom CSS. In your Hubspot form, you’ll check this option to set as faw HTML form:

We had our web team add custom CSS styling to our form (basically they just needed to style the button) and then the button registered as being able to be tracked as a lead event in Facebook’s Event Setup Tool. You *might* be able to just use the raw HTML without adding styling for this to work, but I’m not sure since we didn’t use that method.
I hope this helps!

Thanks for sharing @SSleight :raising_hands: — Jaycee