Skip to content

Track Facebook Ads in Perfex: Leads, Customers and Revenue

You can connect Facebook Ads to Perfex so each lead record shows which campaign brought the person in. That makes it possible to compare paid social with search and organic channels, then move budget toward campaigns that create customers rather than only clicks.

Why campaign visibility matters

Without campaign-level attribution, a profitable Facebook campaign can be underfunded because its customers are invisible, while an ineffective one can keep consuming budget. The fix is to carry campaign identifiers from the ad click through the website visit and into the CRM record created by the form submission.

How the attribution flow works

A small website snippet records how a visitor arrived, classifies that origin into a marketing channel, and stores the result in a browser cookie. When a form is submitted, the stored values are written into hidden fields and travel with the contact details into connected systems such as Perfex CRM. The same mechanism also records other origins, including direct, referral, organic social and organic search, so Facebook can be compared with the rest of the mix.

Four-step setup checklist

First, install the snippet on the website, either directly or through a tag manager. Second, add five hidden fields to every lead form: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3 and Channel Drilldown 4. Third, tag each Facebook destination URL with UTM parameters. Fourth, submit a test form and confirm the hidden values arrive in Perfex with the lead. Use this checklist before trusting any report: snippet present on landing and form pages, hidden fields present on each form, UTM naming consistent across campaigns, test lead shows Paid Social and Facebook, and landing page data is captured.

UTM convention and worked example

UTM parameters are the extra text appended to a campaign URL. For Facebook Ads, a practical convention is medium as Paid Social, source as Facebook, campaign as the campaign name, term as the ad set name, and content as the specific ad. For example, a brand campaign for North America with a green ad would produce Channel as Paid Social, Drilldown 1 as Facebook, Drilldown 2 as the brand campaign, Drilldown 3 as the North America ad group, and Drilldown 4 as the green ad. The landing page URL and its group, such as the features section, are captured alongside these values.

Why persistence and cleaning improve accuracy

Cookie storage means the original UTM values persist while the visitor browses, so the form does not need to be on the landing page. Normalisation also helps when naming drifts, for example Facebook versus facebook.com in the source field: both should still resolve to the correct Paid Social channel. That reduces split reporting caused by small inconsistencies.

Three reports to run first

Once records reach Perfex, native reporting or a connected business intelligence tool can break results down by channel and campaign. Start with leads by channel to see Facebook volume relative to other channels. Then look at customers by campaign to identify which campaigns produce buyers. Finally, compare revenue by campaign with spend: campaigns whose revenue exceeds their cost merit more investment, while persistent underperformers are candidates to pause or rework.

Facebook Ads UTM mapping
UTM parameterRecommended valueWhere it appears in Perfex
utm_mediumPaid SocialChannel
utm_sourceFacebookChannel Drilldown 1
utm_campaignCampaign nameChannel Drilldown 2
utm_termAd set nameChannel Drilldown 3
utm_contentSpecific adChannel Drilldown 4

Convention described in the source; apply consistently across campaigns.

Priority Perfex reports
ReportQuestion it answersDecision it supports
Leads by channelHow many leads came from each channel?Where to shift spend between Facebook and other channels
Customers by campaignWhich campaigns create new customers?Which campaigns to scale or optimise
Revenue by campaignWhat revenue did each campaign generate versus its cost?Which campaigns have positive return and which to stop

Reports depend on complete hidden-field capture and consistent UTM naming.

Frequently asked questions

What is the shortest setup sequence?

Install the attribution snippet, add Channel and Channel Drilldown 1-4 hidden fields to the form, tag Facebook Ads with consistent UTM parameters, then check that a test submission carries the channel values into Perfex alongside the lead details.

How should UTM values be structured for Facebook Ads?

Use Paid Social for medium, Facebook for source, the campaign name for campaign, the ad set name for term, and the specific ad for content. Consistency matters more than clever naming because reporting groups by these values.

Why does attribution survive browsing across pages?

The values are stored in a browser cookie when the visitor arrives, so browsing to other pages before submitting does not erase the original campaign information.

Which three reports show whether Facebook Ads are working?

Compare leads by channel to see relative volume, customers by campaign to find which campaigns create buyers, and revenue by campaign against spend to judge return and decide where to increase or stop investment.