Skip to content

Track Facebook Ads in Marketo: Capture Campaign Data on Every Lead

Knowing how many people clicked an ad is different from knowing how many became leads, customers or revenue. This guide explains how to attach Facebook Ads campaign information to each Marketo lead at form submission, so reporting can start from the contact record rather than from visits alone.

The gap between clicks and customers

Analytics tools can report visits from an ad, but a visit is not a lead. Without campaign data on the contact record, Marketo cannot show which Facebook campaigns produced enquiries, and a CRM cannot later show which produced customers or revenue. The fix is to preserve the advertising parameters from the landing visit and attach them to the form submission.

Four-step setup checklist

Work through these checks in order, because each step depends on the previous one:

  • Install a small attribution snippet on the website so arrival data can be read and stored in the visitor's browser.
  • Add five hidden fields to every relevant form: Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3 and Channel Drilldown 4.
  • Tag Facebook Ads with a consistent UTM convention: medium as Paid Social, source as Facebook, campaign as the campaign name, term as the ad set name and content as the specific ad.
  • Test a submission and confirm the hidden values arrive in Marketo alongside name, email, phone and other submitted details.
  • Forward the captured fields to the CRM where needed, then build reports from the lead record.

A common failure is tagging ads but forgetting the hidden fields, or adding fields without installing the snippet. In both cases Marketo receives a lead with no usable campaign data. Another failure is inconsistent tagging, such as alternating spellings for the same source, which fragments reporting even when data is captured.

How the data flows from ad to Marketo

When a visitor lands from a Facebook ad, the snippet reads the UTM parameters and stores them in the browser. That storage matters for delayed conversions: the visitor can browse, leave and return, and the original arrival information is still available. On form completion, the snippet populates the hidden fields invisibly, so the visitor sees only the normal form. Marketo then stores those values with the contact's submitted details, and the data can be passed onward to a CRM for reporting.

What else the attribution data captures

The snippet does more than record Facebook visits. It categorises arrivals into standard marketing channels, including Organic Search, Paid Social, Paid Search and others, and stores that categorisation in the browser. It also normalises inconsistent UTM usage into the correct channel, captures the landing page URL and landing page group, and supplies attribution for every form lead, including leads from Google Ads, LinkedIn Ads, organic channels and direct traffic. Landing page capture is useful for judging which content, such as a blog post, is driving conversions.

Three reports to build after capture

Once campaign data sits on each lead, three reporting views become practical. Leads by channel breaks monthly lead volume down across all channels, making Facebook performance comparable with other sources for budget decisions. Customers by network separates results across Meta platforms such as Instagram, Messenger and WhatsApp, showing which network delivers customers rather than only clicks. Revenue by campaign shows new revenue per campaign, and when combined with spend data it supports a campaign-level return-on-investment view. Together these views move the conversation from traffic volume to leads, customers and money.

Getting started

Start with one form and one campaign using the UTM convention above. Verify that Channel and the drilldown fields populate in Marketo on a test submission, then roll the hidden fields out to remaining forms. Keep UTM naming consistent from the outset, because cleaning fragmented values later is harder than preventing them. Before promoting a signup link, check the current trial length, product name and signup terms on the provider's own site, since these can change.

UTM convention for Facebook Ads
UTM parameterFacebook Ads conventionUse in reporting
UTM MediumPaid SocialChannel grouping
UTM SourceFacebookNetwork and source grouping
UTM CampaignCampaign nameRevenue and ROI by campaign
UTM TermAd set nameAd set comparison
UTM ContentSpecific adIndividual ad comparison

Convention described for Facebook Ads; keep values consistent across campaigns.

Hidden fields to add to forms
Hidden fieldPurpose
ChannelStandard marketing channel
Channel Drilldown 1First level of source detail
Channel Drilldown 2Second level of source detail
Channel Drilldown 3Third level of source detail
Channel Drilldown 4Fourth level of source detail

Field names must match the form and Marketo configuration used.

Frequently asked questions

Why is visitor traffic not enough to judge Facebook Ads?

Website visitor counts do not show how many became leads or customers. Capturing campaign parameters on the lead record in Marketo connects the later conversion to the ad that brought the visitor to the site.

What is needed to pass Facebook Ads data into Marketo?

Add hidden fields named Channel, Channel Drilldown 1, Channel Drilldown 2, Channel Drilldown 3 and Channel Drilldown 4 to the form, install the attribution snippet on the site, and use consistent UTM values on the ads. The snippet stores arrival data in the browser, writes it into those fields at submission, and Marketo captures it with the contact details.

Which UTM convention works 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. Consistent naming makes later grouping by campaign, network and revenue possible.

What happens if a visitor does not convert on the first visit?

Because arrival data is stored in the browser, a visitor who browses first, leaves and returns, or completes a form later still has the original arrival information passed through, rather than only the final page visit being recorded.

How are inconsistent UTM values handled?

Inconsistent values such as different spellings for the same source can split results. Normalising those values into a single channel, for example Paid Social, keeps reporting cleaner and more reliable.

What reports become possible once the data is in Marketo?

Leads by channel, customers by network across Meta platforms, and revenue by campaign. The last view can be combined with spend data to assess return on investment by campaign.