Facebook Lead Ads (via Zapier)

Workflow Automation

Overview

Facebook Lead Ads simplifies lead generation by allowing users to submit their information directly on Facebook or Instagram through pre-filled forms. Businesses can customize forms, integrate leads with CRMs, and retarget users for better conversion. This tool captures accurate leads quickly, improves engagement, and drives conversions efficiently.

Using Zapier to integrate Facebook Lead Ads with CleverTap, you can do the following:

  • Keep CRM Data Synchronized: When a new lead submits a Facebook Lead Ad form, create a user profile in CleverTap with details such as name, email, phone number, and so on.
  • Remove Converted Users from Re-Engagement Campaigns: When a user converts through a Facebook Ad (for example, completes a purchase), update the user profile in CleverTap (example, mark the profile as Converted).
  • Track Lead Source: When a new lead submits a Facebook Lead Ad form, upload an event in CleverTap with details such as event name, lead source, campaign name, and lead contact information. You can then use the event data to add the lead to a Facebook Audience for tailored retargeting ads.

Prerequisites for Integration

The following are the prerequisites for Facebook Lead Ads:

  • Ensure you have access to your Facebook Lead Ads account.
  • Ensure you have access to an active Zapier account to create the CleverTap app.
  • Ensure you have a CleverTap account with valid Account ID, Passcode, and Region.

Integrate Facebook Lead Ads with CleverTap using Zapier

The integration process involves the following two major steps:

  1. Create a Passcode on the CleverTap Dashboard.
  2. Create/Update User Information. OR
    Upload Event

Create a Passcode on the CleverTap Dashboard

CleverTap uses a header-based authentication model to authenticate requests to the API. Every CleverTap API call must include Account ID and Passcode as the request headers. To create a passcode, refer to Create Account Passcode.

Create/Update User Profiles

Consider an example where you want to automatically sync leads from Facebook Lead Ads with CleverTap to trigger personalized engagement campaigns. This automation ensures that new leads from Facebook Lead Ads are added to CleverTap while existing leads are updated when details change. To do so, perform the following steps:

  1. Log in to the Zapier dashboard and click + Create Zap. Zapier can connect different applications, such as Facebook Lead Ads.
Create a Zap on Zapier Dashboard

Create a Zap on Zapier Dashboard

  1. Set up a Trigger. To do so, perform the following steps:
    1. Select Facebook Lead Ads from the App section. This starts the Zap when a trigger event occurs on Facebook Lead Ads.
    2. Select Trigger Event from the dropdown list and then select New Lead for this use case.
    3. Select Account and sign in using your Facebook Lead Ads account credentials. You can also connect a new account if your account does not appear in the dropdown.
    4. Click Continue. From the Configure section, fill in the mandatory detail.
    5. Select the Facebook Page connected to your lead form. If you cannot see your form, find the Facebook Page ID and set it as a custom value.
    6. Click Continue.
Set Up Trigger Event

Set Up Trigger Event

  1. Click Test Trigger. This ensures that the right account is connected and the trigger is set up correctly.
  2. Click Continue.
  3. Select the Action the zap must perform after the trigger event occurs. To do so, perform the following steps:
    1. Select CleverTap from the App event dropdown.
    2. Select Create/Update User Profile from the Action event dropdown. This implies that whenever a new lead is generated, a new user profile is created, or an existing user profile is updated with the new information.
    3. Select Account to connect the CleverTap account. The Zapier window opens.
    4. Enter all the required details to connect to the CleverTap account. Enter the same passcode you obtained in the Create a Passcode on CleverTap Dashboard step.
    5. Click Continue after successfully connecting your account.
Select Action for Zap

Select Action for Zap

  1. Configure the Action. Map Facebook Lead Ads data fields to CleverTap fields as follows:
CleverTap FieldFacebook Lead Ads Field
IdentityFacebook Lead Ads user ID field, email ID, or any unique identity field corresponding to the user.
Creation DateDate of the user’s creation in Facebook Lead Ads.
Profile PropertiesInclude user properties in JSON format (such as name, email, role, and other custom properties).

🚧

Mapping Identity and Object ID

You can keep the Identity field blank if you provide an Object ID, and vice versa.

Configure the Action

Configure the Action

  1. Click Continue and click Test Step to test the zap after mapping the files.
  2. Click Publish.

After publishing this zap, a new user is created, or an existing user is updated on the CleverTap dashboard every time a trigger occurs. CleverTap uses the Identity field to identify if it is a new user or an existing user. You can verify this by checking your CleverTap dashboard to confirm the user profile has been created or updated.

Verify user in CleverTap

Verify user in CleverTap

Upload Event

Consider an example where you want to upload an event to CleverTap with details such as event name, lead source, campaign name, and lead contact information. every time a new lead submits a Facebook Lead Ad form. This automation ensures that user actions or events tracked in Facebook Lead Ads are automatically recorded in CleverTap, enabling better tracking and personalized engagement strategies. To do so, perform the following steps:

  1. Log in to the Zapier dashboard and click + Create Zap.
  2. Set up a Trigger. For this example, perform the following steps:
    1. Select Facebook Lead Ads from the App section. This starts the Zap when a trigger event occurs in Facebook Lead Ads.
    2. Select Trigger Event from the dropdown list and select New Lead in this case.
    3. Select Account and Sign in with your Facebook Lead Ads account credentials. If your account does not appear in the dropdown, you can also connect a new account.
    4. Click Continue. From the Configure section, fill in the mandatory detail.
    5. Select the Facebook Page connected to your lead form. If you cannot see your form, find the Facebook Page ID and set it as a custom value.
    6. Click Continue.
Set Up Trigger Event

Set Up Trigger Event

  1. Click Test Trigger. This ensures that the right account is connected and the trigger is set up correctly.
  2. Click Continue.
  3. Select the Action that the zap must perform after the trigger event occurs. To do so, perform the following steps:
    1. Select CleverTap from the App event dropdown.
    2. Select Upload Event from the Action event dropdown. This implies that whenever a new event is generated, a new user profile is created, and an existing user profile is updated with the new information.
    3. Select Account to connect the CleverTap account. For more information about how to do this, refer to step 5 (iii) under Create or Update User Profiles.
    4. Click Continue after successfully connecting your account.
Select Action for Zap

Select Action for Zap

  1. Configure the Action. Map Facebook Lead Ads data fields to CleverTap fields as follows:
CleverTap FieldFacebook Lead Ads Field
User IDFacebook Lead Ads user ID field, email ID, or any unique identity field corresponding to the user.
Creation DateEvent creation date.
Event NameSelect a predefined event or create a custom event. You can also map the event name using the Facebook Lead Ads data fields.
Event PropertiesInclude metadata in JSON format (for example, event type, priority, event properties).

🚧

Mapping Identity and Object ID

You can keep the Identity field blank if you provide an Object ID, and vice versa.

Configure the Action

Configure the Action

  1. Click Continue. Click Test Step to test the zap after mapping the files.
  2. Click Publish.

After publishing this zap, an event is uploaded to the CleverTap dashboard every time a trigger occurs. CleverTap uses the Identity field to identify if it is a new user or an existing user.

You can verify this by checking your CleverTap dashboard to confirm if the event has been logged.

Verify Events in CleverTap

Verify Events in CleverTap

FAQs

What happens if I do not map the required fields?

Not mapping required fields may result in incomplete data being transferred or failure to update user profiles and events correctly.