Link codes

These are the short codes behind your tracking links. A code like ?r=hn on getcmdr.com expands to a real utm_source (and optional medium) before analytics records the visit, so your links stay short and clean while the channel still gets attributed. New codes work the moment you save them, no deploy needed. Unknown codes still pass through as their own source verbatim, so this map only exists to give a short code a friendlier meaning. Edits take up to about 5 minutes to reach visitors, since the public list is cached at the edge.

Adding a code before a post

  • Keep codes short, lowercase, and kebab-case. Allowed characters are letters, numbers, and . _ -, up to 64 long. Pick something you can drop into a link without it looking spammy.
  • Example: a code rm with source reddit-macapps turns getcmdr.com/?r=rm into utm_source=reddit-macapps. Set a medium too if you want the channel grouped (for example social).
  • You don't strictly need a code. An unknown ?r=foo still works, it just passes through as utm_source=foo. Codes only exist to give a clean, friendly source (and medium) to a link.
  • A new or edited code takes up to about 5 minutes to go live (the public list is edge-cached). Add it a few minutes before you post, not as you hit publish.
  • A handful of legacy aliases (h, r, x, nl, ruf) are built into the sites as a fallback, so old shared links keep resolving even if this list is unreachable. A code you add here wins over a legacy alias of the same name.

Add a code

CodeSourceMediumNoteActions
hnhackernewssocial
nlnewsletteremail
phproducthuntsocial
rmreddit-macappssocial
rrreddit-rustsocial
rtcreddit-totalcommandersocial
tctcforumsocial
twirthis-week-in-rustsocial
xxsocial