> ## 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 Youtube

This guide explains how to set up tracking between FunnelFlux Pro and **Youtube**.

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

The template configures the following tracking fields:

| Slot | Field Name | Token |
|------|------------|-------|
| external | gclid | `(empty)` |
| c1 | adgroup | `{adgroupid}` |
| c2 | ad | `{creative}` |
| c3 | matchtype | `{matchtype}` |
| c4 | network | `{network}` |
| c5 | kw | `{keyword}` |
| c6 | placement | `{placement}` |
| c7 | target | `{target}` |
| c8 | adposition | `{adposition}` |
| c9 | gbraid | `(empty)` |
| c10 | wbraid | `(empty)` |

**Cost type:** Cost Per Event/Click (no automatic cost token available — you may need to update costs manually)

## 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 **Youtube** as the traffic source
3. Copy the generated tracking link

Use this tracking link as the destination/campaign URL in Youtube. The URL includes all tracking field parameters, so Youtube will automatically replace the tokens with real values when a user clicks your ad.

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

When you select the Youtube template, the **Conversion Tracking** tab is automatically configured with the **GoogleAds** custom scenario. This means conversion data is sent to Youtube through FunnelFlux's built-in integration rather than a simple postback URL.

To complete the setup, you need to configure the S2S integration in FunnelFlux's **Integrations** settings. See the S2S integration documentation for detailed instructions.

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