> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.funnelflux.pro/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Tracking Setup with Meta (Facebook) Ads

This guide walks you through setting up tracking between FunnelFlux Pro and **Meta (Facebook) Ads**.

## Step 1: Add Meta (Facebook) Ads as a Traffic Source
1. Go to **Traffic Sources** > **New**
2. Search for "Meta (Facebook) Ads" in the template list
3. Select the **Meta (Facebook) Ads** template

The template configures the following tracking fields:

| Slot | Field Name | Token |
|------|------------|-------|
| campaign | campaign | `{{campaign.id}}` |
| external | fbclid | `(empty)` |
| c1 | ad_id | `{{ad.id}}` |
| c2 | adset_id | `{{adset.id}}` |
| c3 | placement | `{{placement}}` |
| c4 | site_source | `{{site_source_name}}` |

**Cost type:** Cost Per Event/Click. No automatic cost token is available. You may need to update costs manually (see below).

## Step 2: Create Your Campaign URL
After creating the traffic source:
1. Build a funnel in the **Funnel Builder**
2. Click the traffic node and select **Meta (Facebook) Ads** as the traffic source
3. Copy the generated tracking link

Use this link as your campaign URL in Meta Ads. It includes all tracking parameters. Meta replaces the tokens with real values when someone clicks your ad.

## Step 3: Set Up Conversion Tracking
Meta (Facebook) Ads uses a **server-to-server (S2S) integration** through FunnelFlux's custom scenario system.

When you select the Meta (Facebook) Ads template, the **Conversion Tracking** tab auto-fills with the **Facebook** custom scenario. FunnelFlux sends conversion data to Meta through this built-in integration instead of a simple postback URL.

To finish the setup, configure the S2S integration in FunnelFlux's **Integrations** settings. See the S2S integration docs for full instructions.

## Optional: Updating Costs
If cost tokens are unavailable or inaccurate for your campaign type, you can update costs manually in FunnelFlux:
1. Go to **Update Costs** in FunnelFlux
2. Export your cost data from Meta (Facebook) Ads
3. Match the data by campaign ID and any relevant tracking fields
4. Import the cost data