Skip to content

Track Facebook Ads Leads and Customers in LeadSquared

See which Facebook campaigns create leads, opportunities, customers and revenue without leaving LeadSquared. The setup connects ad click data to the form submission, so each lead record carries its originating channel and campaign detail.

How attribution capture works

A website attribution script examines how each visitor arrived, classifies that visit into a standard marketing channel, and stores the result in a browser cookie. When the visitor later submits a form, the script populates hidden fields on that form. Those fields then flow into connected backend systems, including LeadSquared, alongside the person's name, email and phone.

Once stored, LeadSquared reporting can answer practical questions: how many leads came from each channel, which campaigns produced opportunities, how many became closed-won customers, what close rate each source achieved, and how revenue compares with ad spend.

Step 1: Install the script and add hidden fields

Install the attribution script on the website, using site settings or a tag manager where appropriate. Then add five hidden fields to every lead-capture form:

  • Channel
  • Channel Drilldown 1
  • Channel Drilldown 2
  • Channel Drilldown 3
  • Channel Drilldown 4

Most form builders support this directly: drag in a hidden field type, or hide an existing field through its settings. Confirm each field name matches exactly, because a mismatch means the attribution values have nowhere to land at submission.

Step 2: Tag Facebook Ads with UTM parameters

UTM parameters are text appended to the destination URL so the receiving site can identify the campaign behind a click. A consistent convention for Facebook Ads is:

  • utm_medium: paid social
  • utm_source: facebook
  • utm_campaign: the campaign name
  • utm_term: the ad set name
  • utm_content: the specific ad

Consistency matters more than the exact labels. Decide the convention once, document it, and apply it to every campaign so drilldown reporting stays clean.

Step 3: Capture and store the data until conversion

When a visitor arrives from a Facebook ad, the UTM values are saved to a cookie. That persistence is the key detail: the visitor may browse several pages before converting, yet the original campaign data survives until form submission, when it is written into the hidden fields.

For example, a visitor who clicks a brand campaign ad, browses, and then requests a demo might be recorded as Channel = Paid Social, Drilldown 1 = Facebook, Drilldown 2 = Brand Campaign, Drilldown 3 = North America Ad Group, and Drilldown 4 = Green Ad. The landing page URL and its group, such as a features page and the /features group, are captured at the same time.

Step 4: Report inside LeadSquared

On submission, the channel data travels into LeadSquared with the lead's contact details. From there, use LeadSquared's built-in reporting, or export the fields to a business intelligence tool such as Power BI or Looker Studio for deeper analysis.

Three reports are especially useful:

  • Leads by channel: compare Facebook Ads volume against SEO, Google Ads and other sources before shifting budget.
  • Customers by campaign: identify which campaigns produce actual customers, not just form fills, and focus optimisation effort there.
  • Revenue by campaign: compare revenue against spend to judge return on investment and decide which campaigns to scale or stop.

Why this approach is more reliable

Four advantages distinguish this approach from ad-hoc UTM handling:

  • Full channel coverage: Organic Social, Organic Search, Direct and Referral visits are captured too, so every lead has a source.
  • Cookie persistence: UTM data survives multi-page journeys, improving accuracy when conversion happens on a different page from the landing page.
  • Data cleaning: variations such as facebook versus facebook.com in utm_source still map to Paid Social, preventing fragmented reporting.
  • Landing page context: the entry URL and page group show which content is attracting converting traffic.

Checklist before launch: script installed on all pages, five hidden fields present on every form, UTM convention applied to all active Facebook campaigns, and a test submission verified in LeadSquared with correct channel and drilldown values.

Getting started

Tracking every lead's source, not only Facebook Ads, gives a complete picture of where growth is coming from and where to invest next. Before committing to a tool, it is worth checking the current trial length, plan limits and signup requirements directly with the provider, since these terms can change and should be confirmed against the latest published details.

Frequently asked questions

How does Facebook Ads data reach LeadSquared?

Add UTM parameters to the ad destination URL, capture them when the visitor arrives, retain them in a browser cookie while they browse, then write the resulting channel and drilldown values into hidden form fields at submission so they travel with the lead record into LeadSquared.

Does this only work for Facebook Ads?

No. The same capture also covers visits from Organic Social, Organic Search, Direct and Referral traffic, so reports can compare every channel rather than only paid social.

What happens if UTM naming is inconsistent across campaigns?

Yes. Inconsistent values such as facebook and facebook.com in utm_source are still assigned to the Paid Social channel, reducing split reporting caused by naming variations.

Is landing page information captured too?

The landing page URL and its group are captured alongside channel data, which makes it possible to assess which pages or content areas are associated with converting traffic.