Back to help

Optimize

SubIDs

Stamp extra information onto every click — like a campaign name, source, or date — so your affiliate network's postback can tell you exactly where each conversion came from.

What is a SubID?

A SubID is a key/value pair added to the destination URL when someone clicks your link. For example, if your destination URL is https://network.com/offer and you add a SubID with key s1 and value email, visitors land on https://network.com/offer?s1=email. Your network's postback then fires with s1=email so you know which source converted.

Adding a SubID

Open the link's details panel, find the SubIDs section, and click Add. Each SubID needs:

  • Key — the parameter name (e.g. s1, source, campaign). Letters, digits, underscore, hyphen. Up to 32 characters.
  • Value — what you want that parameter to say. Up to 200 characters. Can be a fixed text or a dynamic placeholder (see below).

Up to 10 SubIDs per link.

Dynamic date placeholders

Instead of a fixed value, you can use a date placeholder that updates automatically on every click:

  • {date}2026-05-25
  • {date:YYYYMMDD}20260525
  • {date:YYYY-MM}2026-05
  • {date:YYYY}2026

For example, key s1 with value email-{date:YYYYMMDD} produces ?s1=email-20260525 on every click that day, then rolls to 20260526 at midnight.

What wins when params conflict

Three things can set params on the final URL. From lowest to highest priority:

  • SubIDs — applied first, fill in defaults.
  • Destination URL — params you wrote directly into the offer URL override SubIDs.
  • Params on the short link — anything you append when sharing the link (e.g. ?clickid=abc) overrides everything else.

This means SubIDs are defaults, your offer URL locks specific values, and you can still override at the campaign level when sharing the link.

Passing params at share time

Any params you add to the short URL when sharing are forwarded to the destination. This lets one link serve multiple sources without creating a new link each time:

  • lnk.linksaff.app/promo?s1=SMS → forwards s1=SMS
  • lnk.linksaff.app/promo?s1=email&clickid=xyz → forwards both
SubIDs — Linksaff help