# Concepts



# How tracking works

##### Summary

This guide explains how click tracking and postback tracking work in DAO.AD. You will learn how to track conversions, pass click identifiers, and configure postbacks with or without a third-party tracking platform.

##### What is Tracking?

Tracking allows advertisers to identify which **clicks, sources, campaigns**, and **creatives** generate conversions.

Without tracking, DAO.AD can only report clicks and impressions. With tracking configured, advertisers can measure **leads, sales, ROI**, and optimize traffic sources.

##### What is a Postback?

**A postback is a server-to-server notification sent after a conversion occurs.**

When a user completes a target action (registration, purchase, lead, install, etc.), the advertiser's system or affiliate network sends a conversion notification containing the original click identifier.

This allows DAO.AD to match the conversion with the original click.

##### How click tracking works

**Step 1**  
User clicks a DAO.AD advertisement.

**Step 2**  
DAO.AD generates a unique click identifier: `{click_id}`

**Step 3**  
DAO.AD sends the user to the destination URL while passing the click identifier.  
Example:  
`https://tracker.com/?clickid={click_id}`

**Step 4**  
The click identifier is stored by the tracking system or CPA network.

**Step 5**  
When the conversion happens, the stored click identifier is sent back through a postback URL.


##### Why postbacks are important

Postbacks allow DAO.AD to:

- track conversions and sales;
- calculate ROI and [CPL](https://wiki.dao.ad/books/terms-a-c/page/cpl "CPL") metrics;
- optimize traffic sources;
- support automatic blacklisting rules;
- support micro-bidding by source or sub-source;
- provide accurate campaign statistics.

Without a postback, DAO.AD can track clicks and impressions only.


##### Related

- [Tracking Configuration Models](https://wiki.dao.ad/books/tracking-postback/page/tracking-configuration-models "Tracking Configuration Models")
- [Tracking Parameters](https://wiki.dao.ad/books/tracking-postback/page/tracking-parameters "Tracking Parameters")
- [Postback Parameters](https://wiki.dao.ad/books/tracking-postback/page/postback-parameters "Postback Parameters")
- [Blacklist and Whitelist Targeting](https://wiki.dao.ad/books/optimization-reporting/page/blacklist-and-whitelist-targeting "Blacklist and Whitelist Targeting")
- [Micro-bidding Tool](https://wiki.dao.ad/books/optimization-reporting/page/micro-bidding-tool "Micro-bidding Tool")

# Tracking Configuration Models

##### Summary

Tracking Configuration Models describes three common tracking setup models and how data flows between DAO.AD, tracking systems, and conversion sources.

**Standard tracking configuration**

##### Model 1: Direct CPA Integration

[![1_tracking_models_daoad.png](https://wiki.dao.ad/uploads/images/gallery/2026-06/scaled-1680-/1-tracking-models-daoad.png)](https://wiki.dao.ad/uploads/images/gallery/2026-06/1-tracking-models-daoad.png)

Steps:

1. User clicks to the DAO.AD advertisement (your creative).
2. DAO.AD generates a unique click ID and sends the user to the CPA network.
3. The CPA network stores DAO.AD's click ID and redirects the user to the landing page.
4. The user completes the target action (conversion), and the CPA network receives the conversion status from the landing page.
5. The CPA network sends a postback to DAO.AD containing the click ID and conversion data.

**Recommended for:** advertisers using direct CPA network integrations.

##### Model 2: Tracker Integration

[![2_tracking_models_daoad.png](https://wiki.dao.ad/uploads/images/gallery/2026-06/scaled-1680-/2-tracking-models-daoad.png)](https://wiki.dao.ad/uploads/images/gallery/2026-06/2-tracking-models-daoad.png)

Steps:

1. User clicks to the DAO.AD advertisement (your creative).
2. DAO.AD generates a unique click ID and sends the user to the tracking system (e.g., Binom or Keitaro).
3. The tracking system passes DAO.AD's click ID to the CPA network using its own parameter name. The parameter name may differ, but **the value always contains DAO.AD's original click ID**.
4. The CPA network stores the tracking system click ID and redirects the user to the landing page.
5. The user completes the target action (conversion), and the CPA network reports the conversion to the tracking system.
6. The tracking system sends a postback to DAO.AD with the click ID and conversion data.

**Recommended for:** media buyers who need advanced analytics and optimization.

##### Model 3: Own Landing Page

[![3_tracking_models_daoad.png](https://wiki.dao.ad/uploads/images/gallery/2026-06/scaled-1680-/3-tracking-models-daoad.png)](https://wiki.dao.ad/uploads/images/gallery/2026-06/3-tracking-models-daoad.png)

Steps:

1. User clicks to the DAO.AD advertisement (your creative).
2. DAO.AD generates a unique click ID and sends the user directly to the advertiser's landing page.
3. The user completes the target action (conversion), and the advertiser's system sends a postback directly to DAO.AD.

**Recommended for:** advertisers with their own landing pages and tracking infrastructure.

##### Related

- [Tracking Parameters](https://wiki.dao.ad/books/tracking-postback/page/tracking-parameters "Tracking Parameters")
- [Postback Parameters](https://wiki.dao.ad/books/tracking-postback/page/postback-parameters "Postback Parameters")
- [Blacklist and Whitelist Targeting](https://wiki.dao.ad/books/optimization-reporting/page/blacklist-and-whitelist-targeting "Blacklist and Whitelist Targeting")
- [Micro-bidding Tool](https://wiki.dao.ad/books/optimization-reporting/page/micro-bidding-tool "Micro-bidding Tool")
- [Test a Conversion (HTTP Examples)](https://wiki.dao.ad/books/tracking-postback/page/test-a-conversion-http-examples "Test a Conversion (HTTP Examples)")

# Tracking Parameters

##### Summary

This page lists all URL macros available in DAO.AD and explains how to pass campaign data to CPA networks and tracking platforms.

<table id="bkmrk-macro-value-descript" style="height: 606.841px; width: 100%;"><thead><tr style="height: 29.537px;"><th class="align-left" style="width: 18.8245%; height: 29.537px;">**Macro**</th><th style="width: 15.6109%; height: 29.537px;">**Value**</th><th style="width: 65.5249%; height: 29.537px;">**Description**</th></tr></thead><tbody><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{click_id}`**</td><td style="width: 15.6109%; height: 30.7755px;">numeric</td><td style="width: 65.5249%; height: 30.7755px;">Unique Click ID</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{campaign_id}`**</td><td style="width: 15.6109%; height: 30.7755px;">numeric</td><td style="width: 65.5249%; height: 30.7755px;">Campaign ID</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{creative_id}`**</td><td style="width: 15.6109%; height: 30.7755px;">numeric</td><td style="width: 65.5249%; height: 30.7755px;">Creative ID</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{source_id}`**</td><td style="width: 15.6109%; height: 30.7755px;">numeric</td><td style="width: 65.5249%; height: 30.7755px;">Publisher Source ID</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{sub_id}`**</td><td style="width: 15.6109%; height: 30.7755px;">text</td><td style="width: 65.5249%; height: 30.7755px;">Publisher Sub-Source ID</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{price}`**</td><td style="width: 15.6109%; height: 30.7755px;">numeric</td><td style="width: 65.5249%; height: 30.7755px;">Campaign bid price (per 1000 clicks)</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{country}`**</td><td style="width: 15.6109%; height: 30.7755px;">text, ISO code</td><td style="width: 65.5249%; height: 30.7755px;">User country (ISO code)</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{subs_age}`**</td><td style="width: 15.6109%; height: 30.7755px;">constant, text</td><td style="width: 65.5249%; height: 30.7755px;">The age of subscription in days: 1-3, 4-7, 8-15, 16+</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{model_price}`**</td><td style="width: 15.6109%; height: 30.7755px;">constant, text</td><td style="width: 65.5249%; height: 30.7755px;">Campaign pricing model ([CPC](https://wiki.dao.ad/books/terms-a-c/page/cpc "CPC") or [CPM](https://wiki.dao.ad/books/terms-a-c/page/cpc "CPC"))</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{cpc}`**</td><td style="width: 15.6109%; height: 30.7755px;">numeric</td><td style="width: 65.5249%; height: 30.7755px;">Actual cost per click ([CPC](https://wiki.dao.ad/books/terms-a-c/page/cpc "CPC"))</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{quality}`**</td><td style="width: 15.6109%; height: 30.7755px;">constant, text</td><td style="width: 65.5249%; height: 30.7755px;">Traffic quality: **low, regular, high, premium**</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{category}`**</td><td style="width: 15.6109%; height: 30.7755px;">constant, text</td><td style="width: 65.5249%; height: 30.7755px;">Campaign category: **adult**, **racy**, or **mainstream**</td></tr><tr style="height: 30.7755px;"><td class="align-left" style="width: 18.8245%; height: 30.7755px;">**`{category_src}`**</td><td style="width: 15.6109%; height: 30.7755px;">constant, text</td><td style="width: 65.5249%; height: 30.7755px;">Traffic source category: **adult**, **racy**, or **mainstream**</td></tr><tr style="height: 29.537px;"><td class="align-left" style="width: 18.8245%; height: 29.537px;">`<strong>{city}</strong>`</td><td style="width: 15.6109%; height: 29.537px;">text</td><td style="width: 65.5249%; height: 29.537px;">User city</td></tr><tr style="height: 29.537px;"><td class="align-left" style="width: 18.8245%; height: 29.537px;">`<strong>{region}</strong>`</td><td style="width: 15.6109%; height: 29.537px;">text</td><td style="width: 65.5249%; height: 29.537px;">User region</td></tr><tr style="height: 29.537px;"><td class="align-left" style="width: 18.8245%; height: 29.537px;">`<strong>{ref}</strong>`</td><td style="width: 15.6109%; height: 29.537px;">text</td><td style="width: 65.5249%; height: 29.537px;">Referring page full URL</td></tr><tr style="height: 29.537px;"><td class="align-left" style="width: 18.8245%; height: 29.537px;">`<strong>{ip}</strong>`</td><td style="width: 15.6109%; height: 29.537px;">IP</td><td style="width: 65.5249%; height: 29.537px;">User IP address</td></tr><tr style="height: 29.537px;"><td class="align-left" style="width: 18.8245%; height: 29.537px;">`<strong>{os}</strong>`</td><td style="width: 15.6109%; height: 29.537px;">text</td><td style="width: 65.5249%; height: 29.537px;">User operating system</td></tr><tr style="height: 29.537px;"><td class="align-left" style="width: 18.8245%; height: 29.537px;">`<strong>{browser}</strong>`</td><td style="width: 15.6109%; height: 29.537px;">text</td><td style="width: 65.5249%; height: 29.537px;">User browser</td></tr></tbody></table>

These macros can be added to your destination URL and passed to a CPA network or tracking platform for reporting and optimization purposes.

##### Example URL

https://**<span style="color: rgb(45, 194, 107);">tracker.com</span>**/click?  
**<span style="color: rgb(185, 106, 217);">clickid</span>**={click\_id}  
&amp;**<span style="color: rgb(185, 106, 217);">source</span>**={source\_id}  
&amp;**<span style="color: rgb(185, 106, 217);">campaign</span>**={campaign\_id}  
&amp;**<span style="color: rgb(185, 106, 217);">country</span>**={country}

**where:**

**<span style="color: rgb(45, 194, 107);">tracker.com</span>** - example CPA network or tracking platform URL  
**<span style="color: rgb(185, 106, 217);">clickid, source, campaign, country</span>**, etc. - are example parameters used by a CPA network or tracking platform. DAO.AD replaces the macros with actual values before redirecting the user. Parameter names may differ depending on the CPA network or tracker.

##### How macro replacement works

DAO.AD URL:  
**https://<span style="color: rgb(45, 194, 107);">tracker.com</span>/click?<span style="color: rgb(185, 106, 217);">clickid</span>=<span style="color: rgb(224, 62, 45);">{click\_id}</span>&amp;<span style="color: rgb(185, 106, 217);">country</span>=<span style="color: rgb(224, 62, 45);">{country}</span>**

After click:  
**https://<span style="color: rgb(45, 194, 107);">tracker.com</span>/click?<span style="color: rgb(185, 106, 217);">clickid</span>=<span style="color: rgb(224, 62, 45);">123456789</span>&amp;<span style="color: rgb(185, 106, 217);">country</span>=<span style="color: rgb(224, 62, 45);">US</span>**


##### Related

- [Postback Parameters](https://wiki.dao.ad/books/tracking-postback/page/postback-parameters "Postback Parameters")
- [Tracking Configuration Models](https://wiki.dao.ad/books/tracking-postback/page/tracking-configuration-models "Tracking Configuration Models")
- [Blacklist and Whitelist Targeting](https://wiki.dao.ad/books/optimization-reporting/page/blacklist-and-whitelist-targeting "Blacklist and Whitelist Targeting")
- [Micro-bidding Tool](https://wiki.dao.ad/books/optimization-reporting/page/micro-bidding-tool "Micro-bidding Tool")

# Postback Parameters

##### Summary

This page describes the parameters available for sending postback requests from a CPA network or tracking platform to DAO.AD.

<table id="bkmrk-macro-value-descript" style="height: 273.979px; width: 100%;"><thead><tr style="height: 29.5104px;"><th class="align-left" style="width: 18.8245%; height: 29.5104px;">**URL Parameter**</th><th style="width: 15.6109%; height: 29.5104px;">**Value**</th><th style="width: 65.5249%; height: 29.5104px;">**Description**</th></tr></thead><tbody><tr style="height: 29.4583px;"><td style="width: 18.8245%; height: 29.4583px;">**DAO.AD API Server**</td><td class="align-left" style="width: 15.6109%; height: 29.4583px;">constant</td><td style="width: 65.5249%; height: 29.4583px;">DAO.AD postback endpoint URL</td></tr><tr style="height: 40.25px;"><td class="align-left" style="width: 18.8245%; height: 40.25px;">**key**</td><td class="align-left" style="width: 15.6109%; height: 40.25px;">text</td><td style="width: 65.5249%; height: 40.25px;">Unique API key used to authenticate server-to-server (S2S) postback requests.</td></tr><tr style="height: 30.75px;"><td class="align-left" style="width: 18.8245%; height: 30.75px;">**sum**</td><td class="align-left" style="width: 15.6109%; height: 30.75px;">numeric</td><td style="width: 65.5249%; height: 30.75px;">Conversion value or lead payout amount</td></tr><tr style="height: 30.75px;"><td class="align-left" style="width: 18.8245%; height: 30.75px;">**click-id**</td><td class="align-left" style="width: 15.6109%; height: 30.75px;">numeric</td><td style="width: 65.5249%; height: 30.75px;">Unique Click ID received from DAO.AD URL macros</td></tr><tr style="height: 48.8958px;"><td class="align-left" style="width: 18.8245%; height: 48.8958px;">**type**</td><td class="align-left" style="width: 15.6109%; height: 48.8958px;">text</td><td style="width: 65.5249%; height: 48.8958px;">The postback type (default is `main`). Common values include: `main` (e.g., registration), `dep` (e.g., deposit), or any custom types you define</td></tr><tr style="height: 64.3646px;"><td class="align-left" style="width: 18.8245%; height: 64.3646px;">**ttl**</td><td class="align-left" style="width: 15.6109%; height: 64.3646px;">numeric</td><td style="width: 65.5249%; height: 64.3646px;">Time in secounds. The postback request time-to-live (TTL). During this period, any postback containing the same Click ID will be treated as a duplicate and ignored. The default value is 24 hours. Minimum value 5 seconds</td></tr></tbody></table>

<p class="callout warning">**Important:** The API key can be found on your DAO.AD [Profile page](https://dao.ad/en/profile).</p>

##### Example URL

http://api.daopush-api.info/api/postback/campaign?key=**<span style="color: rgb(45, 194, 107);">XXXXXXXXXXXXX</span>**&amp;sum=**<span style="color: rgb(224, 62, 45);">{sum}</span>**&amp;click-id=**<span style="color: rgb(224, 62, 45);">{click-Id}</span>**&amp;type=**<span style="color: rgb(224, 62, 45);">{type}</span>**&amp;ttl=**<span style="color: rgb(224, 62, 45);">{ttl}</span>**

**where:**

**<span style="color: rgb(45, 194, 107);">XXXXXXXXXXXXX</span>** - your DAO.AD API key  
<span style="color: #b96ad9;">**<span style="color: rgb(224, 62, 45);">{sum}</span>, <span style="color: rgb(224, 62, 45);">{click-Id}</span>, <span style="color: rgb(224, 62, 45);">{type}</span><span style="color: rgb(224, 62, 45);">, </span><span style="color: rgb(224, 62, 45);">{ttl}<span style="color: rgb(0, 0, 0);"> - </span></span>**<span style="color: rgb(224, 62, 45);"><span style="color: rgb(0, 0, 0);">example macro names used by a CPA network or tracking platform.</span></span></span>

#####   
How macro replacement works

DAO.AD URL:  
http://api.daopush-api.info/api/postback/campaign?key=**<span style="color: rgb(45, 194, 107);">XXXXXXXXXXXXX</span>**&amp;sum=**<span style="color: rgb(224, 62, 45);">{sum}</span>**&amp;click-id=**<span style="color: rgb(224, 62, 45);">{click-Id}</span>**&amp;type=**<span style="color: rgb(224, 62, 45);">{type}</span>**&amp;ttl=**<span style="color: rgb(224, 62, 45);">{ttl}</span>**

After CPA/Tracker request:  
http://api.daopush-api.info/api/postback/campaign?key=**<span style="color: rgb(45, 194, 107);">XXXXXXXXXXXXX</span>**&amp;sum=**<span style="color: rgb(224, 62, 45);">10</span>**&amp;click-id=**<span style="color: rgb(224, 62, 45);">61721111</span>**&amp;type=**<span style="color: rgb(224, 62, 45);">dep</span>**&amp;tt<span style="background-color: rgb(255, 255, 255);">l=**<span style="color: rgb(224, 62, 45);">50</span>**</span>

<p class="callout warning">**Important:** These macro names are examples only and may differ depending on the CPA network or tracking platform. Always refer to the documentation of your CPA network or tracker.</p>

#####   
Why is it needed?  


After a user completes a conversion, the CPA network or tracking platform sends conversion information back to DAO.AD. This data is used for reporting, optimization, automated rules, micro-bidding, and campaign analytics.

##### Benefits of postback tracking:

- Accurate conversion tracking
- ROI calculation
- Automated blacklisting rules
- Micro-bidding optimization
- Source and sub-source analysis
- Campaign performance reporting

##### Related

- [Tracking Configuration Models](https://wiki.dao.ad/books/tracking-postback/page/tracking-configuration-models "Tracking Configuration Models")
- [Blacklist and Whitelist Targeting](https://wiki.dao.ad/books/optimization-reporting/page/blacklist-and-whitelist-targeting "Blacklist and Whitelist Targeting")
- [Micro-bidding Tool](https://wiki.dao.ad/books/optimization-reporting/page/micro-bidding-tool "Micro-bidding Tool")
- [Bid Adjustments](https://wiki.dao.ad/books/optimization-reporting/page/bid-adjustments "Bid Adjustments")