Different Facebook Ads with different UTM links

Different Facebook Ads with different UTM links, on the same landing page (like being said, different UTM links) is a Hubspot form and a possibility to book an appointment. How is it possible to set the Facebook ad as the lead source, both when filling out the form and when booking an appointment, where the default appointment form is currently open, so that Hubspot displays the name of the Facebook ad as the lead source?

Hey @LE4 would HubSpot tracking urls solve this issue for you? It allows you to accuretely track sources and set the campaign IDs to anything you like.

But how can I handle different UTM’s for the Hubspot appointment tool which is build within my landing page? Because every possible lead would have those to options (fill out the contact data form or to book an appointment directly), this would stay the same link (according to my knowledge), or is it also possible to track the link (UTM) before the appointment website?

Hey @LE4 I’m not entirely sure I follow, so you have both a meeting link and a form on a page, and you’re looking to attribute conversions on that page to the form they submit is that right? I don’t think UTM parameters would be what you’re looking for, UTM parameters feed traffic analytics and feed the source information for that contact. Form conversion is a different metric really. The UTM would set facebook as the lead source if that’s set in your tracking url, you could then track the converstions through their respective tools dashboards, contact timelines or through reports in HubSpot.

Hello @LE4 - I see you’re looking for a way to attribute both form fills and appointment bookings back to the specific Facebook Ad that drove the conversion, and have that detail displayed in HubSpot.

While UTM parameters are essential for setting the initial source information, as TomM2 mentioned, getting that specific ad name into the lead source after the conversion requires a more robust setup, especially for the appointment booking which might not be a standard HubSpot form submission.

The combination of the HubSpot API, Facebook Conversions API (CAPI), Google Tag Manager (GTM), and a server-side solution like Stape or Google Cloud Platform (GCP) is an excellent way to solve this.

This approach allows you to capture and control the precise attribution data you need and ensure Facebook’s ad optimization is also fed accurate conversion information.

The core of the issue is that when a user clicks your Facebook Ad, the UTM parameters are present, but when they convert (form fill or appointment booking), you need to persistently pass the ad details (like utm_campaign) from the landing page to the conversion event and then into HubSpot’s contact record.

For the HubSpot form, the UTMs are generally captured and set as the initial source.

For the appointment booking, which may open a different widget or page, you need to ensure those UTMs are also passed to the booking system and then returned as a signal.

The server-side setup using the Facebook Conversions API and GTM is key here.

You can use GTM to capture the utm_campaign from the URL and then send that as a custom parameter alongside Facebook’s Standard Events like Lead (for the form) and Schedule (for the appointment) to your server, perhaps Stape or GCP.

This server acts as a middleman, receiving the data from GTM and then forwarding a clean, complete event, including the attribution data, to the Facebook Conversions API.

Crucially, you would also use the HubSpot API to update the contact’s property for Lead Source or a custom property with the specific utm_campaign value captured from the original UTM link upon conversion.

When the user successfully books an appointment or fills the form, the server-side logic ensures the event is sent to Facebook CAPI for ad attribution and simultaneously triggers a call to the HubSpot API using the contact’s email or other unique ID to set the desired Facebook Ad name as the lead source in HubSpot.

This way, you bypass any limitations of the default tracking on the booking form and ensure that both conversion types accurately display the specific Facebook Ad as the lead source in HubSpot, while also providing Facebook with high-quality, server-side conversion data for better ad performance.
This comment was generated with the assistance of an AI tool, incorporating my expertise in conversion tracking.