How to capture Facebook ads data in HubSpot CRM in 4 steps

✔️Capture Facebook ads data on a lead level ✔️ Store Facebook ads data in HubSpot CRM
Track Facebook ads data in HubSpot CRM

What's on this page:

Track the source of your leads (free trial)

You’re using Facebook to run lead generation ads and forwarding the leads to HubSpot CRM, but you’re unable to identify the specific ad behind each lead. As a result you don’t know which ad brought in the customer once the lead is converted.

This missing data block your ability to adjust your Facebook ads effectively, causing you to spend on multiple ads simultaneously without any clear insight into which one is producing the revenue.

Leadsource fixes this issue by associating every lead with its corresponding Facebook ad, covering the campaign, ad set, audience, and ad itself.

You will learn how to connect each lead to a specific Facebook ad, campaign, ad set, and audience in this article.

Let’s explore this!

Capture Facebook ads in HubSpot CRM

Step 1: Add Leadsources in the head tag of your website

Sign up to Leadsources.io, and benefit from our 14-day free trial.

Add the Leadsources tracking code in the head tag of your site - follow this easy step-by-step guide.

Step 2: Add the UTM parameters to your Facebook ads campaigns

Include the UTM parameters you aim to track within your Facebook campaigns.

Here's an example: You can use these UTM parameters to track the campaign, ad set, audience and ad:

  • UTM_source=facebook
  • UTM_campaign=campaign-name
  • UTM_term=ad-set-name
  • UTM_content=ad-name

With Leadsources, you can obtain all lead source data such as channel, landing page, and subfolder even when UTM parameters are missing, giving you full insight at the lead level.

Step 3: Add the hidden fields in your form

You need to add hidden fields to the form on your landing page for Leadsources to store the lead source data.

As soon as a new lead submits your form, Leadsources automatically injects the Facebook ads data into the hidden fields.

Check out our detailed guide for instructions on adding hidden fields to your form to finalize the setup.

Step 4: Capture the Facebook ads data in HubSpot CRM

Upon clicking your Facebook ads and visiting your page, Leadsources collects the Facebook ads data, including campaign, ad, ad set, and audience.

Facebook ads data is automatically added to the hidden fields of your form by Leadsources.

Upon submitting the form, Facebook ads data and your leads can automatically flow into HubSpot CRM. To set this up, connect your form to HubSpot CRM.

How does Leadsources work?

Adding the Leadsources tracking code to your site’s head tag allows it to capture Facebook ads data, including campaign, ad set, audience, and ad, every time someone visits.

The Facebook ads data is stored in the hidden fields of your form once it is captured. This data can later be transferred to your HubSpot CRM alongside the lead.

From visitors, Leadsources collects the following data:

  • Channel
  • Source
  • Campaign
  • Content
  • Term
  • Landing page
  • Landing page subfolder

Leadsources keeps track of this lead source data regardless of whether UTM parameters are utilized.

Sometimes, UTM parameters cannot be applied:

  • Google Search
  • Instagram bio link
  • Social media posts
  • Etc.

Many lead source tracking tools face this problem since they rely exclusively on UTM parameters to gather lead source data. Conversely, Leadsources continues to track certain lead source data even in the absence of UTM parameters:

  • Channel
  • Source
  • Landing page
  • Landing page subfolder

Thus, Leadsources distinguishes itself by providing lead data tracking across all channels:

  • Organic Search
  • Paid Search
  • Organic Social
  • Paid Social
  • Referral
  • Affiliate
  • Email
  • Display Advertising
  • Direct Traffic

Leadsources organizes your traffic into channels on its own, which leads to a clear dataset.

By using Leadsources, you develop effective lead source tracking across all channels within a single platform.

How to run performance reports

Now that Facebook ads data is recorded in HubSpot CRM, you can produce several performance reports, including:

  • Leads by channel
  • Leads by campaign
  • Leads by ad set
  • Leads by audience
  • Leads by ad
  • Leads by landing page
  • Leads by landing page subfolder

As a result, you can analyze and adjust your Facebook ads budget with improved accuracy.

Let’s take a look at the various reports that you can make.

Lead performance reports

These reports reveal the quantity of leads generated from:

  • Channel
  • Campaign
  • Ad set
  • Audience
  • Ad
  • Landing page
  • Landing page subfolder

Example #1

Retrieve data from multiple channels like SEO, PPC, and email to compile a report called “Leads by Channel.”

Leads by channel

Example #2

After recognizing the top-performing channel, such as Facebook ads, you can prioritize it to examine the number of leads from each campaign.

Leads by campaign

Example #3

Once you recognize the most effective lead-generating campaign, you can determine the specific audience, ad set, or ad responsible for the leads.

Leads by keyword

Sales performance report

It’s great to discover which ads and keywords yield the highest number of leads, but do they impact your revenue as well?

Forwarding your form data to HubSpot CRM allows for the development of detailed sales performance reports.

Example:

ChannelsSearch PaidSocial Paid
Leads5075
Sales56
Average order value$150$100
Revenue$750$600

Following your analysis of the performance of your Google and Facebook ads, you discovered that Social Paid ads yielded more leads compared to Search Paid ads.

After a few weeks of analysis, you discover that the Search Paid channel generated higher revenue while attracting fewer leads than the Social Paid channel, which influences your decision to boost the budget for Search Paid campaigns.