
What is Dub?
Dub is the modern, open-source link attribution platform trusted by world-class marketing teams from companies like Twilio, Buffer, Framer, Perplexity, Vercel, and Laravel. Built for performance and scale, Dub powers 100M+ clicks and 2M+ links monthly, providing everything you need for:- Short links - Create branded short links with custom domains
- Conversion tracking - Track clicks, leads, and sales with powerful analytics
- Affiliate programs - Run commission-based partner programs with built-in payouts
Quickstart
Get started with Dub in under 5 minutes
API Reference
Integrate Dub with your application
Analytics
Track and analyze link performance
Custom Domains
Use your own branded domain for short links
Core Features
Link Management
Create and manage short links at scale with advanced features:- Custom domains - Use your own branded domains (e.g.,
go.yourcompany.com) - Custom slugs - Choose memorable keys or auto-generate random ones
- Link expiration - Set expiration dates with custom redirect URLs
- Password protection - Secure links with password requirements
- Device targeting - Different destinations for iOS, Android, and geo-targeting
- A/B testing - Split traffic between multiple destination URLs
Analytics & Attribution
Track every click with detailed analytics:- Real-time analytics - Monitor clicks, leads, and conversions in real-time
- Geographic data - Track by country, region, city, and continent
- Device insights - Analyze by device type, browser, and operating system
- Referrer tracking - See where your traffic comes from
- UTM parameters - Full UTM parameter support and tracking
- Conversion tracking - Track leads and sales with revenue attribution
Analytics data is powered by Tinybird for blazing-fast queries on billions of events.
Conversion Tracking
Go beyond clicks with conversion tracking:Example: Track a Lead
Example: Track a Sale
Affiliate Programs
Run commission-based partner programs with:- Partner management - Invite and manage affiliate partners
- Commission tracking - Automatic commission calculations
- Payout management - Built-in payout processing via Stripe
- Partner analytics - Detailed performance dashboards for partners
- Custom rewards - Configure commission rates per partner group
Why Choose Dub?
Open Source
99% open source under AGPLv3 with a transparent development process
Developer First
Modern REST API with TypeScript SDK, CLI, and comprehensive documentation
Enterprise Ready
Built for scale with SSO/SAML, webhooks, and role-based access control
Self-Hostable
Deploy on your own infrastructure for complete data control
High Performance
Powers 100M+ monthly clicks with sub-100ms redirect latency
Privacy Focused
GDPR compliant with no third-party trackers
Tech Stack
Dub is built with modern, best-in-class technologies:- Next.js - React framework for the web application
- TypeScript - Type-safe development
- Tailwind CSS - Utility-first CSS framework
- Prisma - Next-generation ORM
- Tinybird - Real-time analytics engine
- PlanetScale - Serverless MySQL database
- Upstash - Redis for caching and rate limiting
- Vercel - Edge network for global deployment
Getting Started
Cloud Platform
Start using Dub’s managed platform instantly
Self-Hosting
Deploy Dub on your own infrastructure
API Integration
Integrate Dub into your application
CLI Tool
Manage links from the command line
Community & Support
Join our growing community:- GitHub - Star us, report issues, and contribute
- Discord - Chat with the team and other users
- Twitter - Follow @dubdotco for updates
- Documentation - Comprehensive guides and API reference
Have questions? Check out our GitHub Discussions or join our Discord community.
