Ingest your event data from Facebook Lead Ads into RudderStack.
3 minute read
Facebook Lead Ads is a popular lead generation marketing tool. It helps you generate leads at scale through forms, calling, and messaging solutions.
This guide will help you set up Facebook Lead Ads as a source in RudderStack.
Prerequisites
A Facebook business account.
You must have created a form for your Facebook page from where you want RudderStack to ingest the leads data.
Setup
Go to your RudderStack dashboard and click Add Source. From the list of sources, select Facebook Lead Ads.
Specify a name for your source and click Continue.
Your Facebook Lead Ads source is now configured. Go to the Setup tab of the source and note the Webhook URL:
Configure webhook
Go to your Business Tools page and click All Tools > Instant Forms.
Go to the CRM setup tab and search for Webhook.
Under Select source, select the source from where you want to ingest the lead data. Then, select the required Ad Account, Page, and Form under Choose settings.
Under Select destination, click Create a new integration.
Configure the below settings in the resulting window. You can also configure the other settings as per your requirement. Then, click Authorize to proceed.
Setting
Notes
URL
Your source webhook URL obtained in the Setup section.
Method
Set it to POST.
Specify a name for the integration and click Continue.
Go back to the CRM setup page where you will see the integration set up above. Click Continue to proceed.
Optional: Add mappings and filters for incoming leads.
Click Test connection to test this integration. Make any changes to the setup as required, then click Save & publish.
Supported mappings
RudderStack ingests the following Facebook Lead Ads properties as identify traits:
Facebook Lead Ads property
RudderStack property
id facebook_lead_id
userId
created_time
originalTimestamp ISO 8601 format
full_name
context.traits.name
first_name
context.traits.firstName
last_name
context.traits.lastName
date_of_birth
context.traits.birthday
phone_number
context.traits.phone
email
context.traits.email
gender
context.traits.gender
zip_code
context.traits.address.zipCode
post_code
context.traits.address.postalCode
state
context.traits.address.state
city
context.traits.address.city
country
context.traits.address.country
province
context.traits.address.province
street_address
context.traits.address.street
company_name
context.traits.company.name
RudderStack maps any other fields apart from the above mappings directly into the context.traits object, for example, marital_status, job_title, work_email, military_status, custom_field_1, etc.
Sample payload and transformation
This section details how RudderStack receives the data from Facebook Lead Ads and creates the resulting payload.
A sample payload sent by Facebook Lead Ads is shown:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.