Home/Skills/Dub

Analytics & Attribution · Open source on GitHub

Dub

Open-source link management and marketing attribution. Work out which channel — social, creators, affiliates, email — actually produced revenue.

GitHub Open-source tool TypeScript · 25.2k ★ AGPL-3.0
dubinc/dub.link GitHub repository card

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

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.