How to capture your Facebook ads in Gravity Forms

✔️Capture Facebook ads data on a lead level ✔️ Store Facebook ads data in Gravity Forms
Track Facebook ads data in Gravity Forms

What's on this page:

Track the source of your leads (free trial)

Are you unsure which Facebook ads are bringing in your leads, sales, and revenue?

You must only know the total number of leads each Facebook ad generates.

As a result, you’re unable to determine which Facebook ad was responsible for generating the leads that ultimately became customers.

Leadsources addresses this challenge.

Leadsources captures your Facebook ads data (campaign, Ad Set, audience, ad) accurately.

You can store detailed Facebook ads data, such as campaign, Ad Set, audience, and ad information for each lead, in Gravity Forms.

You can run reports, such as “Audiences that generated the most leads,” to determine which audience to continue promoting or to stop.

Let’s explore this!

Track Facebook ads in Gravity Forms

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

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

Insert the Leadsources tracking code into the head section of your website.

Simply follow this easy step-by-step guide.

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

Insert the UTM parameters you want to track into each of your Facebook ad campaigns (campaign, ad set, audience, ad).

For example, think about adding these UTM parameters to your Facebook ad links:

  • UTM_source
  • UTM_campaign
  • UTM_term
  • UTM_content

Note that Leadsources can still capture lead source data, including channel, landing page, and landing page subfolder, even if you don’t use UTM parameters, to give you a complete view of your lead sources at the lead level.

Step 3: Add the hidden fields in Gravity Forms

Hidden fields Gravity forms

When someone submits your Gravity Forms, Leadsources automatically populates the hidden fields with Facebook ads data such as campaign, ad set, audience, and ad.

Follow our step-by-step guide to add hidden fields in Gravity Forms to finalize the setup.

The Facebook ads data is saved directly into your Gravity Forms by Leadsources (refer to Step 4).

Step 4: Capture the Facebook ads data in Gravity Forms

Facebook ads data Gravity Forms

Leadsources gathers Facebook ads data, such as campaign, ad set, audience, and ad, when a visitor clicks on your Facebook ad and arrives at your website.

Leadsources automatically inserts Facebook ads data into the hidden fields of your Gravity Forms.

When the form is submitted, both the Facebook ads data and the form responses are sent to the Gravity Forms submissions page for each lead.

How does Leadsources work?

Adding the Leadsources tracking code to the head tag of your site enables it to capture Facebook ads data, such as campaign, ad set, audience, and ad, every time a visitor arrives on your website.

The Facebook ads data is then saved in the hidden fields of your Gravity Forms.

Leadsources will gather the following visitor data:

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

This lets you monitor important lead source details even if UTM parameters are missing, for example, when your traffic comes from organic sources like:

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

Most tools only track lead data when UTM parameters are used, but Leadsources can track leads even without them.

As a result, Leadsources tracks lead data from all channels, unlike other tools such as:

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

This feature helps you gather and organize all lead source data in one location.

How to run performance reports

Now that your Facebook ads data is saved in Gravity Forms, you can generate performance reports such as:

  • Leads per campaign
  • Leads per Ad set
  • Leads per audience
  • Leads per ad
  • Etc.

This helps you make informed decisions about your Facebook ads budget.

Let’s explore the different types of reports you can generate.

Lead performance reports

Reports can be created to display the number of leads generated by:

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

Example #1

You can export data from various campaigns, such as SEO, PPC, and email, to create a report called “Leads by Channel.”

Leads by channel

Example #2

Once you identify the top-performing channel, such as Facebook ads, you can concentrate on it to see the number of leads from each campaign.

Leads by campaign

Example #3

After you identify the campaign with the highest lead generation, you can examine which specific audience, ad set, or ad is driving these leads.

Leads by keyword

Sales performance report

Identifying the ads and audiences with the highest lead generation is useful, but do they also boost your revenue?

By importing your Gravity Forms data into a CRM like GoHighLevel, you can generate detailed sales reports.

Example:

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

After running ads on Google and Facebook your review showed that Social Paid ads generated more leads than Search Paid ads.

Analysis over several weeks showed that the Search Paid channel generated more revenue with fewer leads compared to the Social Paid channel.