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

This guide walks you through setting up tracking between FunnelFlux Pro and **Avazu**.

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

The template configures the following tracking fields:

| Slot | Field Name | Token |
|------|------------|-------|
| campaign | campaign | `(empty)` |
| external | external | `{subid}` |
| c1 | bundle_id | `{bundle_id}` |
| c2 | category | `{category}` |
| c3 | exchange | `{exchange}` |
| c4 | media | `{media}` |
| c5 | creative_id | `{creative_id}` |
| c6 | publisher_name | `{publisher_name}` |
| c7 | source_name | `{source_name}` |

**Cost type:** Cost Per Event/Click. No automatic cost token is available, so 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 **Avazu** as the traffic source
3. Copy the generated tracking link

Use this tracking link as your destination URL in Avazu. The URL already includes all tracking parameters. When a user clicks your ad, Avazu replaces the tokens with real values.

## Step 3: Set Up Conversion Tracking
Avazu uses a **postback URL** for conversion tracking. The template pre-configures this under the **Conversion Tracking** tab.

The postback URL looks like this:
```
https://mdsp.avazutracking.net/tracking/s2s.php?subid={external}
```
Copy this URL and paste it into Avazu's postback settings.

In this URL:
- `{external}` -- FunnelFlux replaces this with the stored click ID from Avazu
- `{payout}` -- FunnelFlux replaces this with the conversion revenue amount

When a conversion fires in FunnelFlux, it sends this postback to notify Avazu.

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