Dynamic SubID Tracking for Smarter Affiliate Marketing

1

What is a SubID?

A SubID is a custom tracking value you append to your affiliate link so you can identify which click (ad, page, placement, author, keyword, etc.) led to a conversion. Think of it as your label for the click—saved by the network and returned in reports or postbacks.

Content Egg automatically adds safe, dynamic SubIDs to every product link—so you always know which post, block, or product made the sale. No extra setup, no messy URLs—just precise insights and cleaner reports, right out of the box.

Definition & common synonyms

Different networks and trackers call the field by different names. They all serve the same purpose: carry your metadata through the click → conversion flow.

ConceptTypical names you’ll see
Single free-form SubIDsubid, sub_id, sub, sid, aff_sub
Multiple slots (granular)sub1, sub2, sub3, sub4, sub5
Network-specific aliases (examples)Awin clickref, CJ sid, Rakuten u1, ShareASale afftrack, Impact subId1–subId5, TUNE/HasOffers aff_sub(1–5), Tradedoubler epi/epi2, Partnerize clickref

You’ll map your own labels (e.g., post, placement, creative) into whichever parameter name the network expects.

Where it “lives” (in the URL)

SubIDs are added as query parameters on your affiliate deeplink. They can be attached directly to a network link or inside a redirect/url parameter when the link wraps a destination URL.

Direct example

https://track.network.com/click?affid=12345&subid=review-page_top

Wrapped/redirect example

https://track.network.com/click?affid=12345&subid=review-page_top
  &url=https%3A%2F%2Fmerchant.com%2Fproduct%3Fsku%3DABC

Multi-slot example

https://example.hasoffers.com/aff_c?offer_id=9&aff_id=101
  &aff_sub=blog
  &aff_sub2=airfryer_roundup
  &aff_sub3=hero_block
  &aff_sub4=creativeA
  &aff_sub5=item123

Rule of thumb: URL-encode values (especially if you pass spaces, slashes, or long strings) and keep them short, safe, and non-PII.

Who uses SubIDs (and why)

  • Affiliates & publishers
    Tie earnings back to content: which post, comparison table, or product made the sale.
  • Media buyers & performance marketers
    Track channel, campaign, ad set, creative, and placement to optimize bids and budgets.
  • SEOs & content teams
    Attribute conversions to authors, templates, schemas, or internal links to guide editorial strategy.
  • Data/analytics folks
    Join SubID values with BI tools, detect anomalies (fraud, broken funnels), and build segment-level profit views.

Quick mental model

  • You choose the labelsub1=channel, sub2=post, sub3=placement, etc.
  • The network stores it on click.
  • Reports/postbacks return it on conversion so you can see what worked—and do more of it.
2

Why SubIDs Matter

SubIDs turn every click into a measurable unit you can analyze, test, and improve—without guesswork.

Track the right thing

Use a simple SubID schema:

SlotWhat to trackExample value
sub1Websitekitchenhub
sub2Postbest-air-fryers or p_4821
sub3Block / Placementhero, table_row_1, sidebar_top
sub4Productean_590123 / sku_af123
sub5Author/Editorauthor_jlee

This answers—in every report—which site, which post, which exact block, which product, and which author/editor drove the conversion.

SubID vs. UTM vs. ClickID

These three are complementary—not interchangeable.

AspectSubIDUTMClickID
Primary audienceAffiliate network / trackerWeb analytics (e.g., GA4)The network/program itself
Who sets itYou (publisher/marketer)You (publisher/marketer)Network (auto-generated)
PurposeCarry your custom context to conversion (post, placement, creative, etc.)Attribute traffic in analytics tools (source/medium/campaign)Deterministic attribution key used by network/postbacks
Typical namessubid, sub1–sub5, sid, clickref, etc.utm_source, utm_medium, utm_campaign, utm_term, utm_contentclickid, cid, transaction_id (varies)
Lives inAffiliate deeplink (query params)Destination URL (visible to analytics)Stored by network; often echoed back on conversion
Paid on?Yes—used in conversion-side reportsNo—analytics onlyDrives attribution; critical for payout accuracy

When to use which

  • Use SubIDs to answer what exactly converted (post/placement/creative/author…).
  • Use UTMs to understand traffic acquisition in GA4 (source/medium/campaign/keyword).
  • Preserve ClickID to ensure the network can match conversion to the right click.
3

Content Egg: Dynamic SubIDs

Content Egg helps you add product blocks, lists, and price comparison tables to posts—sourcing offers from many affiliate modules (Awin, Bol.com, Linkwise, TradeTracker, eBay, feeds, and more), and rendering them via templates and shortcodes. Every one of those clicks can carry a SubID so you know which website → post → block → product drove the sale.

Where you can use SubIDs in Content Egg

You can insert SubIDs anywhere Content Egg asks for a SubID or a deeplink:

  • Module settings (built-in SubID fields): when a network/program supports it (e.g., Awin, Bol.com, Linkwise, TradeTracker, eBay, Feed modules), put your SubID pattern directly into the module’s SubID.
  • Deeplink settings: include SubID as part of the deeplink URL.
  • Directly in shortcodes: add or override parameters inline using the add_query_arg attribute to stamp SubIDs per block/placement.
SubID in the Bol module in Content Egg

Dynamic placeholders: auto-compose SubIDs

Instead of hard-coding values, use dynamic placeholders to build SubIDs from the live post, product, and site context. Wrap placeholders in {{ ... }}—they resolve at render time. Examples: {{post_id}}, {{item_unique_id}}, {{post_url_encoded}}, {{site_domain}}.

Supported placeholder families (examples)

  • Basic: {{url}}, {{url_encoded}}, {{url_base64}}, plus {{post_id}}, {{item_unique_id}}.
  • Product: {{item_title}}, {{item_brand}}, {{item_sku}}, {{item_ean}}, {{item_upc}}, {{item_isbn}}, {{item_module_id}}, {{item_domain}}.
  • Page/Post: {{post_title}}, {{post_slug}}, {{post_url}}, {{post_url_relative}}, {{post_author}}, {{post_date}}.
  • Time/Utility: {{date}}, {{timestamp}}, {{uuid}}, {{post_hash}}.

Many networks restrict characters/length. Use automatic variants to keep things valid:

  • Generic transforms: {{..._encoded}}, {{..._base64}}, {{..._slug}}.
  • SubID-safe transforms (best for network limits): {{..._subid}} (≤100 chars), {{..._subid64}} (≤64), {{..._subid32}} (≤32). If truncation happens, a short hash keeps values stable.

Per-block overrides via shortcode

  1. Identify the parameter your network expects (e.g., clickref, sid, u1, afftrack).
  2. In your Content Egg shortcode, add add_query_arg="PARAM=VALUE&PARAM2=VALUE2".
  3. Compose VALUE with placeholders and safe variants (e.g., {{post_slug_subid}}, {{item_sku}}).
  4. Test a click and confirm the SubID appears in the network’s click/conversion report.

Example (Awin-style clickref):

[content-egg module=Awin template=grid add_query_arg="clickref={{post_id}}-{{item_unique_id}}"]

Amazon note (important)

Amazon Associates doesn’t support SubIDs. Instead, use Tracking IDs and assign different tags per site / section / campaign. You can set the tag via shortcode, e.g.:

[content-egg module=Amazon add_query_arg="tag=YOUR_TAG"]

Create/rotate tags to maintain visibility by section without relying on SubIDs.

Tips

  • Prefer {{..._subid}} / {{..._subid32}} variants for network-safe, compact values.
  • Always URL-encode the merchant destination when it’s passed as a parameter.
  • Test clicks in your network to verify SubIDs appear as expected; some programs trim or reject characters.

Master Table — SubID Support in Affiliate Networks & Programs

Network / ProgramSubID Parameter(s)Max LengthAllowed CharactersSubID Support & Notes
Admitadsubid, subid1–subid450–120 charsLetters, digits, symbolsYes – Supports 5 SubIDs. Each up to 50 chars (SubID4 up to 120). Wide character support including Latin/Cyrillic.
Adtractionepi128 charsAlphanumericYes – Single SubID (EPI) supported.
Affiliate Future (UK)trackingAlphanumericYes – Single SubID supported (tracking code).
Awinclickref, clickref2–clickref650 chars eachASCIIYes – Supports up to 6 SubIDs. Each 50 chars.
AvantLinkctc64 charsAlphanumericYes – Single SubID (custom tracking code).
Bol.com Partner ProgramsubidAlphanumericYes – Single SubID supported. Commonly used for campaign or post IDs.
CAKE (Platform)s1–s5100 chars eachASCIIYes – Supports 5 SubIDs. Each up to 100 chars.
CityAdssa–sa5AlphanumericYes – Supports 5 SubIDs for custom tracking.
CJ Affiliate (Commission Junction)sid64 charsASCIIYes – Single SubID supported.
ClickBanktid100 charsAlphanumericYes – Single SubID (tracking ID).
ClixGaloreOIDAlphanumericYes – Single SubID supported.
Coupang PartnerssubIdAlphanumericYes – Single SubID supported. Common for advanced tracking.
Daisycon (NL/BE)ws, ws2, ws3100 / 50 / 50 charsAlphanumeric + symbolsYes – Supports 3 SubIDs. Allows various characters including punctuation.
eBay Partner NetworkcustomidAlphanumericYes – Single SubID supported (custom ID).
Envato Market AffiliatesubId1–subId3255 chars eachAlphanumericYes – Program runs on Impact platform; supports multiple SubIDs.
Everflow (Platform)sub1–sub5AlphanumericYes – Supports 5 SubIDs.
FlexOffersfobsAlphanumericYes – Single SubID supported. Recommended to keep under 100 chars.
Flipkart Affiliate (IN)affExtParam1, affExtParam2AlphanumericYes – Supports 2 SubIDs for campaigns or placements.
GdeSlonsub_id–sub_id5AlphanumericYes – Supports 5 SubIDs.
HasOffers (TUNE Platform)aff_sub–aff_sub5255 chars eachAlphanumericYes – Supports 5 SubIDs. Widely used in CPA networks.
Impact (Impact Radius)subId1–subId3255 chars eachAlphanumericYes – Supports up to 3 SubIDs.
LinkConnectoratid100 charsAlphanumericYes – Single SubID supported.
LinkTrust (Platform)SID500 charsAlphanumeric + “-”Yes – Single SubID. Very large max length.
Linkwise (GR)subid1–subid5AlphanumericYes – Supports 5 SubIDs.
Lomadee (BR)Internal fieldYes – SubID handled internally. Uses click ID for tracking.
Partnerize (Pepperjam)pubref100 charsAlphanumericYes – Single SubID.
Post Affiliate Pro (SaaS)data1, data225 chars eachAlphanumericYes – Supports 2 SubIDs.
Rakuten Advertisingu172 charsAlphanumericYes – Single SubID supported.
Refersion (SaaS)subidAlphanumericYes – Single SubID supported.
ShareASaleafftrack255 charsAlphanumericYes – Single SubID supported.
Shopee Affiliate ProgramSubIdAlphanumericYes – Single SubID supported. Shown as “Sub ID” in dashboard.
Sovrn Commerce (VigLink)subId32 charsAlphanumericYes – Single SubID field.
TradeDoublerepi, epi264 chars eachAlphanumericYes – Supports 2 SubIDs.
TradeTrackerrAlphanumericYes – Single SubID supported.
Udemy AffiliatesubId1–subId3255 chars eachAlphanumericYes – Program runs on Impact; multiple SubIDs supported.
Walmart Affiliate (US)subId1–subId3255 chars eachAlphanumericYes – Runs on Impact; multiple SubIDs supported.
Webgainsclickref255 charsAlphanumericYes – Single SubID supported.
Amazon AssociatesN/ANo – SubIDs not supported. Use Tracking IDs instead.
Best Buy AffiliatesubId1–subId3255 chars eachAlphanumericYes – Program runs on Impact; multiple SubIDs supported.
Booking.com AffiliatesubId1–subId3255 chars eachAlphanumericYes – Runs on Impact; multiple SubIDs supported.
Target AffiliatesubId1–subId3255 chars eachAlphanumericYes – Runs on Impact platform; supports multiple SubIDs.
AliExpress AffiliatesubId, subid1–subid4~50 chars eachAlphanumericYes – Supports up to 5 SubIDs (via Admitad / Alibaba Affiliate).

Notes:

  • Most global networks accept URL-safe SubIDs (letters, numbers, dashes, underscores).
  • When no official character limit is documented, keep values under 100 chars for safety.
  • Amazon Associates and some smaller in-house programs do not support SubIDs—use tracking tags instead.
  • Always URL-encode SubIDs when nested in redirect URLs.
  • SubID fields may be case-sensitive in some networks.

Leave a Comment