Traffic sources
Overview
Section titled “Overview”A traffic source describes one place your clicks come from: an ad platform account, a newsletter, an affiliate, a push network. Every tracking link is built for one funnel and one source, and the source decides:
-
which URL parameters are tracking fields, stored on every touch and available in reports;
-
which platform macros are written into the generated links;
-
what a click costs;
-
whether and how conversions are sent back to the platform.
-
Where: sidebar group Analytics › Traffic sources.
-
URL:
/t/<workspace>/analytics/sources?site=<site id>. -
Who uses it: everyone with
analytics:readsees the list; creating, editing, archiving and restoring requireanalytics:configure(owner, admin, marketer).
The page hint sums it up: “Where funnel traffic comes from. Tracking fields are the URL parameters stored and reported; everything else is only passed through.”
How it works
Section titled “How it works”The list
Section titled “The list”The panel Traffic sources lists the sources of the selected site.
- A Status switch shows Active or Archived sources.
- Each row shows a megaphone icon, the source name, its Category as a pill (when set) and a line “
<n>custom fields ·<cost type>· conversions:<delivery>” followed by the source id (ts_…). The delivery is Ad platform API, Postback URL or Do not send. - Row buttons (with
analytics:configure): Edit, Archive (or Restore). - New source (top right, with
analytics:configure) opens the template gallery. - Empty states: “No traffic sources yet: start from a template.” and “No archived sources.”
Templates
Section titled “Templates”New source opens Start from a template: “Templates prefill the platform URL macros and the conversion events; everything stays editable.” You can filter the cards with Search templates (by name or category). Each card shows “<category> · <n> fields”. Picking a card opens the editor prefilled; nothing is created until you click Create source.
| Template | Category | Campaign field | External click id field | Custom fields (name = URL parameter: source token) | Conversion events |
|---|---|---|---|---|---|
| Meta Ads | Social | campaign = {{campaign.id}} |
fbclid (captured only) |
adset: {{adset.id}}, ad: {{ad.id}}, campaign_name: {{campaign.name}}, adset_name: {{adset.name}}, ad_name: {{ad.name}}, placement: {{placement}}, site_source: {{site_source_name}} |
Sale → Purchase, Lead → Lead |
| Google Ads | Search | campaign = {campaignid} |
gclid (captured only) |
adgroup: {adgroupid}, creative: {creative}, keyword: {keyword}, matchtype: {matchtype}, device: {device}, network: {network}, placement: {placement}, gbraid and wbraid (captured only) |
None (Google Ads conversion actions are account specific: add them yourself) |
| TikTok Ads | Social | campaign = __CAMPAIGN_ID__ |
ttclid (captured only) |
adgroup: __AID__, ad: __CID__, campaign_name: __CAMPAIGN_NAME__, adgroup_name: __AID_NAME__, ad_name: __CID_NAME__, placement: __PLACEMENT__ |
Sale → CompletePayment, Lead → SubmitForm |
| Custom | None | campaign (no token) |
external (no token) |
None | None |
All templates start with the cost type CPC (per click). The platform click ids (fbclid, gclid, gbraid, wbraid, ttclid) are appended by the platforms themselves, so the templates capture them without writing them into the links.
Tracking fields
Section titled “Tracking fields”Every source has two reserved fields and up to 20 custom fields:
- Campaign ID and External click ID are locked (tooltip: “Reserved field: it cannot be removed or renamed”). You can change their URL parameter, source token and append switch. The campaign is the
campaigndimension of reports; the external click id is what platforms match conversions on. - Custom fields live in numbered slots
c1…c20. The slot is what is stored on each touch: renaming a field keeps its slot, so the data already collected stays readable, and the previous name is shown under the field (“formerly<name>”). - Fields whose name (or URL parameter) is
adset,adsetid,adgrouporadgroupidare used as the ad set level of the performance report;ad,adid,creativeorcreativeidas the ad level. The names of synced ad entities are matched to those ids.
Hint below the table: “The source token is the platform macro written into generated links; when empty the parameter is not appended but is still captured from incoming URLs.”
The cost of each entrance (click) is computed when the link is opened:
-
If the link carries
c, its value is used:c=0.25(an amount in the site currency) orc=cpm_2.50(an amount per thousand, here 0.0025). An unreplaced platform macro counts as no value. -
Otherwise, unless the cost type is No cost, the source’s Default cost per entrance is used; if it is empty, the funnel’s default cost (API only) is used.
-
The Cost modifier is applied:
10adds 10%,-10removes 10%. The result is never negative.
The cost is stored in minor units on the entrance touch and feeds the cost, profit, ROI and CPA of the performance report and the ROI of the funnel heatmap. When an ad platform connection syncs spend for the same period, reports use the synced spend instead of the per-click costs for that platform (see Ad spend sync).
The cost types CPC (per click), CPM (per 1000 impressions), CPA (per conversion) and Revenue share describe how you buy the traffic; the cost of each entrance is always computed as above. Only No cost changes the computation: the default cost is not applied (a c value in the link still is).
Conversions
Section titled “Conversions”The Conversions tab decides how conversions of this source’s visitors are sent back (Send conversions back):
- Ad platform API: conversions are sent server side to an Ad connection (“Conversions are sent server-side to this ad account.”). The Event mapping says which platform event each conversion becomes (“Which platform event each conversion becomes; unmapped events are not sent.”). The full delivery pipeline (queue, retries, deduplication with the browser pixel, hashing of customer data) is described in Outbound conversions.
- Postback URL: amabledata calls an address of the source (an affiliate network, a push network, your own server) on each conversion, with tokens such as
{external}or{payout}replaced by the conversion’s values. The field hint says: “Called on every conversion, unless the throttle, zero-revenue or consent rules skip it; failed calls are retried and listed under Ads → Conversions sent. Tokens:{external}{campaign}{payout}{txid}{hit}{data-name}(name of a custom field).” See Postback URL calls below. - Do not send: “Conversions are recorded and reported but not sent back to the source.”
Switching mode clears the other one, so a source never reports a conversion twice.
Postback URL calls
Section titled “Postback URL calls”When the source is in Postback URL mode, a conversion calls the address when all of the following are true:
- It was recorded by a conversion postback to the edge worker (
GET /pborGET /pb/event, see Tracking links). - Its status is approved (pending conversions are called once a later postback approves them; rejections never are).
- The postback did not carry
disable_postbacks=1(ortrue). - The touch that converted belongs to this source.
The call goes through the same queue as the ad platform conversions, so it shows up in the Conversions sent log of Analytics settings › Ad accounts with the platform Postback URL, and it gets the same gates, retries and resend button (see Outbound conversions):
- Gates: a conversion without consent (
consent=0), not approved, of a person deleted for privacy reasons, with zero revenue while Skip zero-revenue conversions is on, or drawn by the Postback throttle, is recorded as a Skipped job and the address is not called. - Deduplication: the same conversion (same transaction id, or same conversion when there is none, and same event) calls the address only once, even when its postback is repeated.
- Timing: the call is made right away, as a
GETthat follows redirects and waits up to 10 seconds. - Result: any 2xx answer marks the job Sent. A timeout, a network error or an HTTP 408, 429 or 5xx answer is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours; the sixth failed attempt marks it Failed. Any other answer marks it Failed at once with
http_<status>(for examplehttp_404). Failed jobs can be resent from the log.
The tokens are replaced with URL-encoded values:
| Token | Value |
|---|---|
{external} |
The external click id stored on the converting touch. |
{campaign} |
The campaign id stored on the converting touch. |
{payout} |
The conversion revenue in major units (for example 49.9), with the Revenue modifier applied, in the conversion’s currency (else the site currency). |
{txid} |
The transaction id (tx) of the postback, else the internal conversion id. |
{hit} |
The id of the converting touch. |
{data-<name>} |
The value of the custom tracking field whose Name or URL parameter is <name> (case-insensitive), for example {data-adset}. |
The converting touch is the one named by the postback’s hit, else the visitor’s latest touch from this source. A token that matches nothing, or a field with no value, becomes empty. Tokens can only contain letters, digits, _, . and -, so a custom field whose name has spaces is reachable through its URL parameter. The filled-in address is cut at 4,096 characters.
Archiving
Section titled “Archiving”Sources are never deleted. Archive hides a source from the active list and from the link builder (“Source archived (its fields keep being captured)”); links already built for it keep working and keep capturing its fields. Restore brings it back (“Source restored”).
Changes apply to new clicks only; touches already recorded keep the values captured at the time. The editor says: “Changes apply to new clicks; links already in circulation keep working.”
Step by step
Section titled “Step by step”Create a traffic source
Section titled “Create a traffic source”-
Open Analytics › Traffic sources and click New source.
-
Pick a template (Meta Ads, Google Ads, TikTok Ads or Custom).
-
On General, set the Name (required) and optionally a Category.
-
On Tracking fields, adjust the fields (see below).
-
On Conversions, choose how conversions are sent back.
-
On Advanced, set the cost type, the default cost and the modifiers.
-
Click Create source. You see “Traffic source created”. If something is missing, the tab with the error gets a dot (•) and opens automatically.
Add or edit tracking fields
Section titled “Add or edit tracking fields”-
Open the Tracking fields tab.
-
Click Add field: a field is added in the next free slot, named after the slot (
c3) with the same URL parameter. The counter shows “<n>/ 20 custom fields”; the button is disabled at 20. -
Set its Name (how reports and
{data-<name>}tokens refer to it), its URL parameter (the query parameter read from incoming links) and, if the platform has a macro for it, the Source token (empty shows “Captured only”). -
Leave Append on to write
url_param=source_tokeninto generated links; turn it off for parameters the platform adds by itself. -
Use the trash button (Remove field) to delete a custom field.
-
Click Save (“Traffic source saved”).
Send conversions to an ad platform
Section titled “Send conversions to an ad platform”-
Connect the ad account first in the Ad accounts tab of Analytics settings. Without one, the editor shows “No ad account connected.” and a Connect one link. See Ad accounts.
-
In the Conversions tab choose Ad platform API and pick the Ad connection (“Choose a connection” lists the connected accounts as “
<platform>·<account>”). -
Under Event mapping, click Add event, choose the Event (Sale, Lead or Custom event 1 … Custom event 10) and type the Platform event (for example
PurchaseorLeadfor Meta, the conversion action resource name such ascustomers/123/conversionActions/456for Google Ads,CompletePaymentorSubmitFormfor TikTok). Remove event deletes a row. Up to 30 rows. -
Optionally, in Advanced, set Postback throttle, Skip zero-revenue conversions and Revenue modifier.
-
Click Save.
Call a postback URL on conversions
Section titled “Call a postback URL on conversions”-
In the Conversions tab choose Postback URL.
-
Paste the address your network gives you and put the tokens where its parameters go, for example
https://network.example/postback?click={external}&payout={payout}&tx={txid}(the placeholder of the field). The address must be a valid URL of up to 2,048 characters. -
Make sure the External click ID field of Tracking fields reads the parameter your network puts its click id in, so
{external}has a value. -
Optionally, in Advanced, set Revenue modifier (changes
{payout}), Skip zero-revenue conversions and Postback throttle. -
Click Save. From now on, approved postbacks of touches from this source call the address; check the calls in the Conversions sent log of Analytics settings › Ad accounts (filter Platform on Postback URL).
Archive or restore a source
Section titled “Archive or restore a source”Click Archive on the row. To bring it back, switch Status to Archived and click Restore.
Reference
Section titled “Reference”Editor tabs
Section titled “Editor tabs”| Tab | Field | Type and limits | Default |
|---|---|---|---|
| General | Name | Required, up to 200 characters | Template name |
| General | Category | Optional, up to 64 characters. “Optional grouping in reports (Social, Search, Push…).” | Template category |
| General | Template | Read only: the template you started from | |
| Tracking fields | Slot | Lock icon for reserved fields, c1…c20 for custom ones |
Next free slot |
| Tracking fields | Name | 1 to 64 characters (custom fields only) | Slot name |
| Tracking fields | URL parameter | 1 to 64 letters, digits, _ . -; not reserved; unique in the source (case-insensitive) |
Slot name |
| Tracking fields | Source token | Up to 200 characters; the platform macro | Empty |
| Tracking fields | Token | Read only: {campaign}, {external} or {data-<name>} |
|
| Tracking fields | Append | Switch | On |
| Conversions | Send conversions back | Ad platform API, Postback URL, Do not send | From the template |
| Conversions | Ad connection | A connected ad account; required in Ad platform API mode | None |
| Conversions | Event mapping | Up to 30 rows of event → platform event (1 to 200 characters) | From the template |
| Conversions | Postback URL | Valid URL up to 2,048 characters; required in Postback URL mode | Empty |
| Advanced | Cost type | CPC (per click), CPM (per 1000 impressions), CPA (per conversion), Revenue share, No cost | CPC |
| Advanced | Default cost per entrance | Amount in the site currency, empty = none. “Used when the link carries no cost.” | Empty |
| Advanced | Cost modifier | Percentage from -100 to 1000. “Applied to incoming costs: 10 = +10%, -10 = -10%.” | Empty |
| Advanced | Revenue modifier | Percentage from -100 to 1000. “Only changes the payout sent back to the source, never the reported revenue.” | Empty |
| Advanced | Postback throttle | Percentage 0 to 100. “Share of conversions NOT sent back (0 = send all).” | Empty |
| Advanced | Skip zero-revenue conversions | Switch. “Conversions without revenue are not sent back.” | Off |
The Revenue modifier only changes the value sent back with each conversion (the value sent to the ad platform, or the {payout} token of the postback URL). Reports, including the attributed revenue of the performance report, always use the amount recorded with the conversion. The Cost modifier is applied once to each click cost when the link is opened (the stored cost already includes it), and to the ad spend synced for the source’s platform in the performance report. Throttled and zero-revenue conversions are recorded as skipped jobs in the outbound log; the throttle draw is made once per conversion, so a repeated postback does not re-roll it.
Validation messages
Section titled “Validation messages”| Message | Cause |
|---|---|
| Required. | Postback URL mode without an address, or Ad platform API mode without a connection |
| Use 1-64 letters, digits, _ . - | Invalid URL parameter |
| Reserved by the tracking links (vid, n, c, ts, f, p, hit, rev, tx, rn). | The URL parameter is reserved |
| Already used by another field. | Two fields read the same URL parameter |
Other format problems (an empty name, a percentage out of range…) are shown under the field with the server’s message when you click Create source or Save.
Limits and permissions
Section titled “Limits and permissions”| Item | Limit |
|---|---|
| Custom tracking fields | 20 per source (slots c1…c20) |
| Event mapping rows | 30 |
| Custom events | 10 |
| Name | 200 characters |
analytics:read: see sources and templates.analytics:configure: create, edit, archive, restore (owner, admin, marketer).- Creations and edits are written to the audit log (
analytics.traffic_source_created,analytics.traffic_source_updated).
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | Fix |
|---|---|---|
| A parameter is in the landing URL but missing in reports | It is not a tracking field of the source (it only went through the data buffer) | Add it as a custom field |
The generated link has no adset=… |
Append is off or the Source token is empty | Fill the platform macro and turn Append on |
| Costs are zero | No c in the link, no default cost, or cost type No cost |
Set Default cost per entrance, add c= with the platform’s cost macro, or connect the ad account to sync spend |
| Conversions do not reach the platform | Mode is Do not send, the event is not mapped, the conversion is pending, or a gate (throttle, zero revenue, consent) skipped it | Choose Ad platform API or Postback URL, map the event, and check the outbound log |
| The postback URL is never called | The conversion was not recorded through /pb, is not approved, carried disable_postbacks=1, or its touch is from another source |
Check the postback and the Conversions sent log (platform Postback URL) |
Postback job Failed with http_400, http_404… |
The network refused the call; these answers are not retried | Fix the address or its parameters, then Resend the job |
{external} or a {data-…} token arrives empty |
The touch has no value for that field, or the token name matches no field | Check the field’s URL parameter and that your links carry it |
| The source is missing in the link builder | It is archived | Restore it |

