Upfront: I did not build this. It is an open-source project on GitHub (dubinc/dub.link, AGPL-3.0). It is listed here on star count, maintenance activity and how well it fits day-to-day storefront operations.
What it does
- Channel attribution — a distinct short link per placement, creator or email means clicks and conversions land on the right channel instead of being guessed.
- Conversion tracking — it records more than clicks; post purchase events back and get real ROI per channel rather than vanity traffic.
- Custom domains — branded short links convert better than generic shorteners and are less likely to be blocked by platforms.
- Partners and affiliates — partner link management is built in, so a creator commission or affiliate programme doesn't need a second system.
How to use it
Dub is primarily a hosted product; the source is open but self-hosting is involved. The quickest path is the cloud version — to self-host, the repo documents the setup:
git clone https://github.com/dubinc/dub.git
cd dub
# dependency and local dev setup is documented under apps/web
# seed data:
cd apps/web
pnpm run script dev/seed
Self-hosting needs PlanetScale/MySQL, Redis and Tinybird among others, so it is not lightweight. If attribution is all you need, prove it out on cloud first.
When to use it, and when not to
This answers where traffic comes from and which channel actually pays. For on-site behaviour see PostHog; for orders and margin, Metabase.


