Knowing which Facebook Ads campaigns produce most of your leads, opportunities, and customers helps you decide where to invest and what to pause. But clicks are not customers, and Salesforce is where revenue is measured.
When you send Facebook Ads data into Salesforce, you can build reports that show how many leads came from Paid Social, which campaigns generated the most opportunities, which creatives created customers, and more.
In this article, we will walk through how to use Attry to send Facebook Ads data into Salesforce and show example reports you can run to understand performance.
What is Attry?
Attry is a lightweight script you add to your site. It detects where a visitor came from, groups traffic into clear channels like Paid Social, Paid Search, Organic Search, and stores the data in a cookie so it is not lost as visitors browse.
When a form is submitted, Attry writes the source data into hidden fields and sends it alongside the details the visitor entered. It also captures the first landing page and the page group so you can see which pages and sections generate the most customers. If your forms are embedded in iframes, Attry’s iframe adapter injects attribution safely inside the iframe.
4 simple steps to track your Facebook Ad campaigns in Salesforce
Capturing Facebook Ads data in Salesforce is simple with Attry. Just follow these steps:
1) Add UTM parameters to your Facebook Ads
The first step is to add UTM parameters to your ad URLs. UTMs are short text snippets added to the end of a URL to tell analytics tools exactly where a visitor comes from.
For example, if you are sending traffic to https://yourcompany.com/free-demo
, your tagged link might look like:
https://yourcompany.com/free-demo?utm_medium=paidsocial&utm_source=facebook&utm_campaign=retargeting-q3&utm_content=creative-a
Recommended structure for Facebook Ads:
utm_medium = paidsocial
utm_source = facebook
utm_campaign =
the name of your Facebook campaignutm_content =
the ad creative or variation
This consistent naming makes downstream reporting a breeze.
2) Add hidden fields to your forms
Add hidden fields to your lead capture forms so Attry can write attribution on submit.
- Channel
- Channel Drilldown 1
- Channel Drilldown 2
- Channel Drilldown 3
- Channel Drilldown 4
- Landing Page
- Landing Page Group
In most builders, adding hidden fields is as simple as dragging a Hidden field onto the form. For embedded forms, Attry’s iframe adapter writes values inside the iframe.
3) Install Attry on your site
Once you sign up for your free trial of Attry, you will receive a unique snippet of code. Place it inside the <head>
of your website or landing pages - ideally using your CMS settings or a tag manager.
Why the <head>
section? So Attry can capture the UTMs and click IDs before any forms load.
Tip: If your forms are embedded inside iframes, Attry’s iframe-safe tagging ensures all data is still captured.
4) Attry writes Facebook Ads data into the hidden fields
After installation, Attry tracks where each visitor comes from and stores that data as they browse. When a user submits a form, Attry automatically injects the full source data into hidden fields.
Imagine you run a B2B SaaS product. A prospect clicks your Facebook Retargeting campaign, browses your site, and completes a demo request. Attry would capture and pass data such as:
- Channel = Paid Social
- Channel Drilldown 1 = Facebook
- Channel Drilldown 2 = Retargeting Q3
- Channel Drilldown 3 = Creative A
- Channel Drilldown 4 = Creative A
- Landing Page = /free-demo
- Landing Page Group = free-demo
5) Use the data inside Salesforce
Once Facebook Ads data is saved with each lead, you can:
- Show attribution on Leads so sales has context on every inquiry.
- Build dashboards that group Leads, Opportunities, and revenue by campaign and creative.
- Push the data to BI tools like Tableau, Looker Studio, or Google Sheets for analysis.
Why using Attry is better than capturing raw UTM parameters
Captures all traffic
Attry sends attribution for every lead - not just Facebook Ads. Organic Search, Paid Search, referrals, and direct are captured too, so you can see the full picture.
Remembers the data
Attry stores attribution in a cookie so if someone lands on your homepage and submits a form later, their original source is preserved.
Provides cleaner data
Attry normalizes inconsistent UTM usage so reporting is tidy even when multiple teams or agencies have managed ads.
Records landing page data
Attry captures the first landing page and landing page group, which helps you analyze which pages convert to paying customers.
Works with iframe forms
If your forms load inside cross-origin iframes, Attry’s iframe adapter injects attribution safely inside the iframe.
Example reports you can create with Facebook Ads data in Salesforce
When Facebook Ads data flows into Salesforce, you can build reports like:
- Leads by Channel
See how many leads you generate each month from Paid Social, Paid Search, Organic, and more - helping you prioritize marketing spend. - Opportunities and Customers by Campaign
Understand which campaigns create pipeline and Closed Won, so you can double down on winners and cut underperforming ads. - Revenue by Creative
Discover which ad variations generate the most revenue and adjust your creative strategy accordingly.
Wrap Up
Attry makes it easy to track exactly how many leads and customers you are getting from Facebook Ads and which campaigns and creatives perform best. And it is not limited to Facebook Ads - Attry captures attribution across all your marketing channels for a complete view of where customers originate.