Sub IDs, parameters & traffic-source templates
Every query parameter a tracking link understands — sub1–sub10, source_id, click IDs, ad-platform fields and their aliases — custom parameters, limits, and traffic-source link templates.
Last updated 5 min read
On this page
Partners add parameters to tracking links to report on their own campaigns. TrackCrown maps known parameters onto click
columns (report dimensions and macros) and keeps everything else as custom parameters. This applies to /r, /click,
/c, /s, /i and /clk.
Rules#
- Parameter names are case-insensitive (
SUB1,CampaignIdwork). - For each column the first alias in the table with a non-empty value wins; other aliases with values are kept as custom parameters.
- Empty values are ignored. Values are trimmed and cut to 512 bytes (click IDs: 1,024; some fields shorter, see below).
url,force_transparentandtokenare never stored as parameters.
Mapped parameters#
The Google Target ID is also split on : into keyword ID (kwd-…), audience ID (aud-…), DSA ID (dsa-…) and
partition ID (pla-…), each a report dimension. Example: tid=aud-456:kwd-123.
On transparent links, click IDs inside the decoded url= landing page fill empty click-ID columns too.
Where sub IDs are available#
Custom parameters#
Any other parameter is stored on the click as a custom parameter: up to 50 per click, names up to 64 characters, values up to 512 bytes.
https://trackcrown.com/r/OFFERCODE/PARTNERCODE? sub1=summer &placement_group=top-feed &ad_format=video- Visible on the click's detail page (Reporting → Clicks → open a click).
- Usable in targeting Parameter filters by name (e.g.
ad_formatisvideo). - Not available as macros and not report dimensions. Map values you need to report on into
sub1–sub10.
Traffic-source templates#
A traffic-source template presets sub1–sub5 and source_id with an ad network's macros, so partners do not have to
look them up. Manage them under Partners → Partner program → Traffic sources.
- Click to add a source (sheet New traffic source) or start from a preset.
- Fill Name, the sub values and Source ID (at least one value).
- Choose the visibility:
- Public — every partner can pick it in their link builder.
- Private — a staff-only template, or, with Force on partner set, applied to every link that partner generates (portal and API); the partner cannot change those values, and the tracking server enforces them (see below).
Presets:
Precedence when a link is built#
- Values typed by the user.
- A chosen template overrides the keys it defines.
- A forced source overrides everything for its keys.
Staff choose a Traffic source template on the offer's Tracking tab (private templates are marked "staff only"); partners choose Traffic source in the portal. Deleting a source does not change links already generated.
Forced sources on incoming clicks#
Templates are applied when links are generated. A forced source is also enforced by the tracking server on that
partner's affiliate links (/r and /click) without url=: a click whose
values contradict it goes to the fallback chain with the reason traffic_source.
For each key of the forced source (sub1–sub5, source_id):
- Macro placeholders (
{campaignid},{{ad.id}},__CID__,[clickid],%%SITE%%,${AUCTION_ID}) accept any value — also an empty or unexpanded one. - Every literal part must be present, in order, ignoring case and surrounding spaces: the first part at the start of
the value, the last part at the end.
source_id = googlerequiressource_id=google;sub1 = fb_{{ad.id}}requires a value starting withfb_. - A template made only of macros never refuses a click.
Forced sources are not checked on transparent requests (any link carrying url=), smart links or server-side
clicks (/clk). Changes apply to new clicks within seconds.