Get Started with Dub
This guide will walk you through creating your first short link, tracking clicks, and accessing analytics. You’ll be up and running in under 5 minutes.Create an Account
Sign up for a free Dub account at app.dub.coYou can sign up with:
- Email and password
- GitHub
The free tier includes 1,000 link clicks per month and unlimited links.
Create Your Workspace
After signing in, you’ll be prompted to create your first workspace. A workspace is a container for your links, domains, and team members.
- Enter your workspace name (e.g., “Acme Marketing”)
- Choose a workspace slug (e.g.,
acme) - Click Create Workspace
Create Your First Short Link
Now let’s create your first short link:Your short link is now live and ready to share!
- Click the Create Link button in the dashboard
- Enter your destination URL (e.g.,
https://example.com/product) - Choose your domain:
- Use
dub.sh(free default domain) - Or add your own custom domain
- Use
- Customize the short link key (optional)
- Leave blank for a random 7-character key
- Or enter a custom slug (e.g.,
product)
- Click Create Link
Share Your Link
Copy your short link and share it anywhere:
- Social media posts
- Email campaigns
- Marketing materials
- QR codes
View Analytics
Click on your link in the dashboard to view detailed analytics:
- Total clicks - Real-time click count
- Click timeline - Clicks over time with customizable date ranges
- Geographic data - Countries, regions, and cities
- Devices - Desktop vs mobile breakdown
- Browsers & OS - Browser and operating system distribution
- Referrers - Where your traffic comes from

Next Steps
Now that you’ve created your first link, explore Dub’s advanced features:Add a Custom Domain
Use your own branded domain for short links
Enable Conversion Tracking
Track leads and sales beyond clicks
Use the API
Create and manage links programmatically
Advanced Link Features
Explore A/B testing, device targeting, and more
Using the API
Prefer to work with code? Create links programmatically using the Dub API:Get Your API Key
- Go to your workspace settings
- Navigate to API Keys
- Click Create API Key
- Give it a name and select permissions
- Copy the API key (you won’t see it again!)
Using the CLI
Manage your links from the command line with the Dub CLI:Common Use Cases
Marketing Campaigns
Track campaign performance with UTM parameters:Example Link
QR Code Marketing
- Create a short link for your product
- Click the QR code icon in the dashboard
- Download the QR code image
- Add to printed materials, packaging, or signage
trigger=qr parameter.
Social Media Sharing
Customize link previews for social media:- Edit your link
- Enable Custom Link Previews
- Set custom title, description, and image
- Your short link will show your custom preview on social platforms
Custom link previews work on Twitter, Facebook, LinkedIn, and other platforms that support Open Graph tags.
A/B Testing Landing Pages
Test different landing pages with traffic splitting:- Create a new link
- Enable A/B Testing
- Add multiple destination URLs with traffic percentages:
- Variant A: 50%
- Variant B: 50%
- Track which variant converts better in analytics
Troubleshooting
My link isn't redirecting
My link isn't redirecting
Check the following:
- Ensure the destination URL is valid and accessible
- Verify the link hasn’t expired
- Check if password protection is enabled
- Confirm the domain is properly configured
Analytics aren't showing
Analytics aren't showing
Analytics may take a few seconds to update:
- Refresh the page after 10-15 seconds
- Ensure you’re viewing the correct date range
- Check if you’re filtering by specific dimensions
Can't create a link with my desired key
Can't create a link with my desired key
The key may already be taken:
- Try a different key
- Add numbers or hyphens (e.g.,
product-2024) - Use a different domain if you have multiple configured
API requests are failing
API requests are failing
Common issues:
- Verify your API key is correct and has the right permissions
- Check that you’re including the
Authorizationheader - Ensure your request body is valid JSON
- Review the error message in the response
Get Help
Need assistance? We’re here to help:Documentation
Browse our comprehensive guides
API Reference
Detailed API documentation
GitHub Discussions
Ask questions and share ideas
Discord Community
Chat with the team and community