Setting Up a Funnel Event Pixel for Facebook Conversion API in Stack
The Facebook Conversions API (CAPI) is a powerful tool to enhance your advertising efforts by sending web events directly from your server to Facebook. This helps in delivering personalized ads while maintaining data privacy. If you're using a Facebook Pixel to track events, you'll want to integrate it with your Stack funnels.
Overview
Steps Covered:
- Create a Facebook Pixel
- Apply the Pixel Code to Your Funnel or Website
- Create a Facebook Conversions API Workflow
Step 1: Create a Facebook Pixel
To start, you'll need to create a Facebook Pixel:
- Access Facebook Business Manager: Navigate to your Facebook Business Manager (Meta Business Suite).
- Go to Events Manager: Find this option in the left sidebar.
- Connect Data Sources: Choose the 'Web' option and proceed.
- Create or Select a Pixel: If you have existing pixels, you can select one or create a new pixel.
- Add Your Domain: Enter the domain of the funnel or website where you'll add the pixel code. Ensure the domain is eligible by checking for a green checkmark.
- Choose Connection Method: Select 'Meta Pixel and Conversions API' and follow the instructions.
- Select Events and Parameters: Choose relevant events and ensure to check parameters like Event ID and Customer Information Parameters (Client's IP Address, First Name, etc.).
Step 2: Apply Pixel Code to Your Funnel/Website
- Navigate to Stack: Keep your Facebook tab open and switch to your Stack account.
- Access Sites: Go to 'Sites' in the left sidebar and select 'Funnels' or 'Websites'.
- Edit Funnel/Website: For specific pages, click 'Edit' and paste the copied pixel code into the "Header Tracking" section.
- Global Tracking: To track all pages, paste the pixel code in the "Head tracking code" section of the funnel or website settings.
- Save Changes: Ensure all changes are saved.
Step 3: Create a Facebook Conversions API Workflow
- Go to Automation: Navigate to
Automation > Workflows > Create Workflow. - Add Workflow Trigger: Choose triggers like Form Submitted, Customer Booked Appointment, etc.
- Add Action: Select 'Facebook Conversion API' from the action options.
- Configure Action:
- Set the Event Type to 'Funnel Event'.
- Retrieve and paste the Access Token and Pixel ID from Facebook Events Manager into the respective fields.
- Finalize Workflow: Save the action, then save and publish the workflow.
Additional Notes
- Lead Value: Use assumed values like 1000 or 2000 to estimate each lead's contribution to your pipeline.
- Custom Mapping: You can enable custom mapping for Facebook Ads conversion tracking parameters, allowing you to map FBCLID for funnel events and Facebook Lead ID for lead events. If custom fields are provided, they override system defaults.
By following these steps, you'll successfully integrate Facebook's Conversion API with your Stack funnels, enhancing your ability to track and optimize ad performance.