Skip to main content

URL Tokens Reference

Tokens are placeholders in URLs that get replaced at click-time with values from the click record. They look like {token_name} and let you build dynamic URLs that include attribution and visitor context.

Tokens work in three places:

When a token can't be resolved (the value isn't available for that click), it's replaced with an empty string. The URL still works.

Click Identity

TokenReplaced WithExample
{click_id}Unique UUID for this click550e8400-e29b-41d4-a716-446655440000
{external_id}The platform's click ID, mapped via SourceIwAR1abc123...
{session_id}Hash of IP + UA — same across the visitor's session7c2a8b...
{tenant_id}Your sub-account ID1594a494-...

Time

TokenReplaced WithExample
{date}Current date in YYYY-MM-DD2026-04-29
{time}Current time in HH:MM:SS UTC14:32:18
{timestamp}ISO-8601 datetime UTC2026-04-29T14:32:18Z

UTM Parameters

TokenSource
{utm_source}UTM utm_source from the click URL
{utm_medium}UTM utm_medium
{utm_campaign}UTM utm_campaign
{utm_content}UTM utm_content
{utm_term}UTM utm_term
{utm_id}UTM utm_id

Click ID Platforms

The platform-specific click ID parameter that came in on the URL.

TokenSource
{gclid}Google Ads click ID
{fbclid}Meta (Facebook/Instagram) click ID
{msclkid}Microsoft (Bing) Ads click ID
{ttclid}TikTok Ads click ID
{li_fat_id}LinkedIn Ads click ID
{twclid}X (Twitter) Ads click ID
{epik}Pinterest Ads click ID
{rdt_cid}Reddit Ads click ID
{ScCid}Snapchat Ads click ID

Channel

TokenReplaced With
{channel}Computed marketing channel (Direct, Paid Search, Paid Social, Organic Search, Organic Social, Email, Referral, Display, Affiliate)

Geo (from MaxMind GeoLite2)

TokenReplaced With
{country_code}ISO-3166 alpha-2 (US)
{country_name}Full country name
{country_tier}Advertising tier classification (tier1tier4)
{region_code}ISO-3166-2 region/state code
{region_name}Full region/state name
{city}City name
{postal_code}Postal/ZIP code
{timezone}IANA timezone (America/Los_Angeles)
{latitude}Latitude
{longitude}Longitude

Device

TokenReplaced With
{device_type}desktop, mobile, tablet, unknown
{device_brand}Apple, Samsung, Google, etc.
{device_model}iPhone 15, Galaxy S23, etc.
{os_name}iOS, Android, Windows, macOS, Linux
{os_version}OS version string
{browser_name}Chrome, Safari, Firefox, Edge
{browser_version}Browser version string

Network

TokenReplaced With
{ip_address}The visitor's IP address
{isp}ISP / autonomous system organization
{connection_type}wifi, cellular, cable, dsl, fiber, etc.

Language

TokenReplaced With
{language_code}Primary language ISO code (en, es)
{language_name}Full language name

Custom Variables (Source Token Mappings)

These tokens hold whatever the source's parameter mappings extracted from the incoming URL. See Sources for setup.

TokenReplaced With
{v1} through {v10}Tokens 1-10 from the source mapping

Cost / Revenue

Available in postback URLs (after a conversion fires).

TokenReplaced With
{cost}Cost recorded for the click
{cost_currency}Currency code
{revenue}Revenue from this conversion
{revenue_currency}Currency code

User Agent

TokenReplaced With
{user_agent}Full HTTP User-Agent header value

Affiliate Network

For Offers configured with an affiliate network.

TokenReplaced With
{affiliate_network_id}Internal network reference
{affiliate_network_name}Network display name

Putting It Together

Lander URL with personalization

https://yoursite.com/landing/spring
?city={city}
&country={country_code}
&source={utm_source}
&cid={click_id}

A US visitor from LA via Facebook gets:

https://yoursite.com/landing/spring
?city=Los%20Angeles
&country=US
&source=facebook
&cid=550e8400-...

Offer URL with affiliate parameters

https://offer-network.com/track
?aff_id=YOUR_AFF_ID
&offer_id=12345
&click_id={click_id}
&sub1={v1}
&sub2={utm_campaign}

Postback URL forwarding to ad platform

https://network.com/postback
?click_id={external_id}
&payout={revenue}
&currency={revenue_currency}
&transaction_id={click_id}

This forwards external_id (the ad platform's click ID — gclid, fbclid, etc.) and our internal click_id, plus revenue, on every conversion. The ad platform uses external_id to attribute the conversion back to the original ad in their reporting.

URL Encoding

Token values are URL-encoded automatically. Spaces become %20, special characters get escaped. You don't need to wrap tokens in any encoding helper — just use {token_name} and the value is escaped for you.

Empty / Missing Tokens

When a token can't be resolved (parameter wasn't in the click URL, geo lookup didn't return a value, etc.), it's replaced with an empty string. The surrounding URL stays valid.

?city={city}&campaign={utm_campaign}

If city is null and utm_campaign is spring:

?city=&campaign=spring

If your destination is sensitive to empty params (e.g. it errors on empty values), use a Lander or Offer with a default in the URL itself, or coordinate with the destination to ignore empties.

Tokens NOT Currently Supported

These would be useful but aren't in the system yet:

  • Conditional tokens ({country_code:US?somevalue:other})
  • Concatenated tokens ({utm_source}_{utm_campaign})
  • Math/transformations ({cost*100})

Workaround: do these transformations on your destination page or in your postback receiver.


Next Steps