Overview
Dub provides powerful link management capabilities to help you create, organize, and track your short links. From simple URL shortening to advanced features like custom domains, UTM parameters, and device targeting, Dub gives you complete control over your links.Creating Links
Basic Link Creation
Create a short link through the Dub dashboard or API:Link Properties
Every link in Dub has the following core properties:Domain
The short domain for your link (e.g.,
dub.sh, dub.co, or your custom domain)Key
The unique slug that identifies your link (e.g.,
/github)Destination URL
The long URL where users are redirected when clicking your short link
Short Link
The complete short link combining domain and key (e.g.,
dub.sh/github)Advanced Link Features
UTM Parameters
Automatically append UTM parameters to your destination URLs for campaign tracking:utm_source- The referrer (e.g., google, newsletter)utm_medium- Marketing medium (e.g., cpc, email, social)utm_campaign- Campaign name (e.g., summer_sale)utm_term- Paid keywordsutm_content- Differentiate similar content
Device Targeting
Redirect users to different URLs based on their device:- Dashboard
- API
- Open the link editor
- Scroll to “Device Targeting”
- Enable iOS and/or Android targeting
- Enter the specific URLs for each platform
Device targeting is available on Pro plans and above. Users on desktop will be redirected to the default URL.
Geographic Targeting
Redirect users to different URLs based on their location:Link Expiration
Set an expiration date and optional expired URL:- Dashboard
- API
- Open the link editor
- Find “Link Expiration”
- Set the expiration date and time
- Optionally set an “Expired URL” to redirect users after expiration
Password Protection
Protect your links with a password:Organizing Links
Folders
Organize your links into folders for better management:
Folder properties from the schema:
- Supports nested organization
- Each link can belong to one folder
- Folders can be archived or deleted
Tags
Tag links for flexible categorization:Unlike folders, links can have multiple tags, making them ideal for cross-categorization.
Bulk Operations
Bulk Edit
Update multiple links at once:- Select multiple links using checkboxes
- Click “Bulk Edit” in the toolbar
- Choose properties to update (tags, folder, archived status, etc.)
- Apply changes to all selected links
Bulk Delete
Delete multiple links efficiently:Link States
Archived Links
Archive links to hide them from your main view without deleting:- Archived links remain accessible via their short URLs
- Analytics data is preserved
- Can be unarchived at any time
- Doesn’t count toward your link limit
Disabled Links
Temporarily disable links:Link Metadata
Custom OG Tags
Customize social media previews with proxy mode:- Dashboard
- API
- Enable “Proxy” in the link editor
- Add a custom title (up to 120 characters)
- Add a description (up to 240 characters)
- Upload or provide an image URL
Comments
Add internal notes to links:Link Statistics
Each link tracks comprehensive statistics:clicks- Total number of clicksleads- Number of leads generatedconversions- Number of conversionssales- Total sales countsaleAmount- Revenue in centslastClicked- Timestamp of most recent click
Statistics are updated in real-time and can be viewed in the analytics dashboard or retrieved via API.
External IDs and Multi-Tenancy
External IDs
Map links to your own database:Tenant IDs
Support multi-tenant applications:External IDs must be unique per workspace. Use them to maintain references between Dub links and your application’s data.
API Reference
For detailed API documentation on link management, see:Best Practices
Use Descriptive Keys
Choose memorable, descriptive keys for your short links (e.g.,
/summer-sale instead of /x7k9)Organize with Folders
Group related links in folders for easier management and reporting
Tag Strategically
Use consistent tagging conventions across your team for better filtering and analytics
Archive, Don't Delete
Archive old links instead of deleting to preserve analytics and avoid broken links