marketing

Accurate Attribution with Dub

Get precise link tracking with Dub, for world-class marketing teams, backed by 24k+ GitHub stars
23,978 stars3,110 forksTypeScriptQuality 9/10Updated 7/12/2026100% free · open source
What it does

Dub provides precise link tracking for marketing teams, allowing them to accurately attribute and analyze the performance of their links across various channels.

Install / run
git clone https://github.com/dubinc/dub.git
When to use it
  • When you need to track the performance of specific links in your marketing campaigns
  • When you want to understand how different channels (e.g. social media, email, paid ads) are driving traffic to your site
  • When you need to attribute conversions or sales to specific marketing efforts
Quick start
  1. 1Run `npm install` to install the dependencies required by Dub
  2. 2Create a new Dub project by running `npx dub init` and following the prompts
  3. 3Configure your link tracking by editing the `dub.json` file, specifying your API key and other settings as needed
  4. 4Start the Dub server by running `npx dub start` and access the dashboard at http://localhost:3000
  5. 5Integrate Dub with your existing marketing tools by using the provided APIs and webhooks
Ready-to-paste prompt
npx dub track --link https://example.com --channel social --utm_source twitter --utm_medium paid
Heads up: You need to obtain a Dub API key and configure it in your `dub.json` file before you can start tracking links
Saves to your device

Topics

clickhouse
mysql
nextjs
open-source
planetscale
prisma
tailwindcss
tinybird
typescript
upstash
vercel
What's inside — free to inspect
No purchase needed

Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.

10
top-level files
3
folders
86.2M
repo size
Other
license
Key files
package.json
prettier.config.js
README.md
File tree
.github/
apps/
packages/
.gitignore
.prettierignore
LICENSE.md
package.json
pnpm-lock.yaml
pnpm-workspace.yaml
prettier.config.js
README.md
SECURITY.md
turbo.json
Quick Actions
Details
Creator
dubinc
Language
TypeScript
Category
marketing
Published
8/27/2022

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.