The best way to capture Facebook Ads data in Formspree

Understand the easiest way to capture Facebook Ads data (like the campaign, network and ad set the lead came from) in Formspree so you can see how many leads are coming from your Facebook Ads.

Formspree (1) social

Having trouble tracking the leads from your Facebook Ads campaigns? Understanding the origin of your leads, such as the network, campaign, ad set, and link clicked, is vital for optimizing your ad strategy and maximizing your ROI.

Luckily, Attributer is here to help. With Attributer, you can easily track the source of your leads, including those generated from Facebook Ads, using your preferred form builder. In this article, we'll guide you through the process of using Attributer with Formspree to effectively track your Facebook Ads leads. Let's dive in and unlock the power of lead tracking with Attributer and Formspree.

4 simple steps to capture Facebook Ads data in Formspree

Capturing Facebook Ads data with each submission of your Formspree is simple with Attributer. Here's how it works:

1. Add UTM parameters to your Facebook Ads

Facebook Ad with UTMs

To start off, it's crucial to incorporate UTM parameters in your existing Facebook Ads.

UTM parameters are additional snippets of text that you add to the end of the URL you want to share with your target audience through your campaigns.

For example, let's say you want to direct visitors to a page like In that case, your final URL with UTM parameters might look like this:

When it comes to UTM parameters, it's important to tailor them to gather the desired information about your ads. If you're unsure, here's a general best practice to follow:

  • UTM Medium: Specify as "Paid social"
  • UTM Source: Mention the platform, such as "Facebook" or "Instagram," or the specific network
  • UTM Campaign: Use the name of your campaign
  • UTM Term: Include the ad set name that the ad belongs to
  • UTM Content: Describe the specific ad itself

Incorporating UTM parameters into your URLs is a straightforward process, and you can find free online tools to help you with this task.

2. Install Attributer on your website

Add Attributer Code to Site Mobile

Integrating Attributer into your company's website is a simple process.

When a visitor arrives on your site, Attributer analyzes technical data to determine their source, such as Facebook Ads.

Once the visitor submits a form on your site, Attributer retrieves the Facebook Ads data from the UTM parameters and populates hidden fields that you've added to your form. Formspree captures these fields along with the lead's name, email, and other details.

Adding Attributer to your website is effortless. Start by signing up for a 14-day free trial, and you'll receive a small code snippet. Follow the provided instructions to easily integrate the code into your site.

3. Add hidden fields to your forms

Step 2

Next, it's time to set up a set of hidden fields on the forms you use to collect data from visitors on your website, like the 'Contact Us' or 'Request Quote' forms.

These are the essential hidden fields that should be included in your forms:

  • Channel Drilldown 1
  • Channel Drilldown 2
  • Channel Drilldown 3
  • Channel Drilldown 4
  • Landing Page
  • Landing Page Group

In Formspree, adding hidden fields is a straightforward process. Simply drag and drop the "hidden" field type onto your form, and you're good to go.

4. Attributer writes the Facebook Ads data into the hidden fields and it’s captured by Formspree

Step 2 (1)

When a visitor arrives on your website through your Facebook Ads, Attributer captures the UTM parameters associated with your ads and stores them in a cookie within the visitor's browser. This ensures that the UTM parameters remain intact as the visitor navigates through your site.

As the visitor proceeds to fill out a form on your website, Attributer automatically populates the designated hidden fields with the Facebook Ads data. When the form is submitted, this information is captured alongside the visitor's name, email, and other provided data.

What you can do with the data

Once the Facebook Ads data is captured in Formspree, you have various options to utilize it:

  • Integrate with your CRM: By transferring the Facebook Ads data to platforms like Salesforce, Pipedrive, HubSpot, or other CRMs, you can generate insightful reports on the number of leads generated, conversion rates, total revenue, and more. This integration allows you to manage and analyze your leads effectively.
  • Export to a spreadsheet: Leveraging Formspree integrations or Zapier, you can export the data to Google Sheets or Excel. Once in the spreadsheet, you can perform basic analysis or connect it to analytics tools such as Google Data Studio or Microsoft Power BI to create advanced reports.
  • Include in email notifications: If your company communicates with new leads via email rather than a CRM, you can include the Facebook Ads data in your lead notification emails. This way, you can easily access the source of your leads directly in your inbox.

Why use Attributer

There are other methods for capturing Facebook Ads data in Formspree, so why choose Attributer?

There are a few main benefits:

Captures other attribution information

In addition to tracking attribution data for leads generated by your Facebook Ads, Attributer also captures information about leads arriving at your website through different channels such as Direct, Referral, Organic Social, or Organic Search. This integration of Attributer with Formspree provides you with visibility into the source of ALL your leads and customers, going beyond those solely originating from Facebook Ads.

Remembers the data

When a user clicks on your Facebook Ad and lands on your website's homepage, they might proceed to click on the "Get A Quote" button, which takes them to a separate page where they can fill out a form. However, there is a challenge: since the form submission occurs on a different page than the initial landing page, the UTM parameters may get lost, and Formspree may not capture them.

Fortunately, Attributer has a solution. It stores the UTM parameters in a cookie within the user's browser. This means that regardless of the page the visitor uses to complete the form, the UTM parameters associated with your Facebook Ads will always be retained and recorded in the form submission.

Cleans the data

Attributer was developed to detect variations in UTM usage and effectively attribute leads to the correct channels, guaranteeing precise data.

For instance, if you used "utm_source=facebook" in some campaigns and "" in others, Attributer would still accurately assign the leads to the paid social channel, despite the difference in UTM parameters.

Captures landing page data

Apart from collecting Facebook Ads data, Attributer also captures the URL of the landing page (e.g., and its corresponding landing page group (e.g., /blog). This information enables you to analyze the impact of your content, such as blog posts, on lead generation, customer acquisition, and revenue generation.

Wrap up

Attributer streamlines the collection of UTM parameters from your Facebook Ads with each submission made through Formspree.

With this data, you can effortlessly monitor the number of leads generated by your Facebook Ads, identify the campaigns they come from, determine the most successful ad networks (such as Instagram or Facebook Messenger), and analyze other important metrics.

Best of all, getting started with Attributer is absolutely free! Take advantage of the 14-day trial today and experience the benefits it can bring to your business.

Get Started For Free

Start your 14-day free trial of Attributer today!


About the Author

Aaron Beashel is the founder of Attributer and has over 15 years of experience in marketing & analytics. He is a recognized expert in the subject and has written articles for leading websites such as Hubspot, Zapier, Search Engine Journal, Buffer, Unbounce & more. Learn more about Aaron here.