Supported Services
Postiz supports four URL shortening providers:- Dub - Open-source link management (recommended)
- Short.io - Branded short links
- Kutt.it - Self-hostable URL shortener
- LinkDrip - Link shortening with drip campaigns
Postiz automatically selects the first configured provider. Configure only one service.
Provider Selection Priority
Fromshort.link.service.ts:11-29:
Configuration
Dub (Recommended)
Dub is an open-source link management platform with analytics.Create Dub Account
- Visit dub.co or deploy your own instance
- Create an account and workspace
- Navigate to Settings → API
Configure Custom Domain (Optional)
- Go to Domains → Add Domain
- Enter your custom domain (e.g.,
links.yourdomain.com) - Add DNS records as instructed
- Wait for verification
Short.io
Short.io is a commercial URL shortening service with branded links.Create Short.io Account
Visit short.io and create an account.
Configure Environment
Add to your Short.io uses
.env file:short.io domain by default (hardcoded in provider).Kutt.it
Kutt is a self-hostable open-source URL shortener.Deploy Kutt Instance
Follow the Kutt deployment guide or use the hosted version at kutt.it.
LinkDrip
LinkDrip provides URL shortening with marketing automation features.Create LinkDrip Account
Visit linkdrip.com and create an account.
LinkDrip integration currently has limited analytics support in Postiz.
How Link Shortening Works
Automatic URL Detection
Postiz automatically detects and shortens URLs in your posts:Link Creation Examples
Link Analytics
Getting Link Statistics
Postiz retrieves click statistics for shortened links:Analytics by Provider
LinkedIn Link Shortening Prompt
Postiz can optionally prompt users before shortening LinkedIn links:Disabling Link Shortening
To disable URL shortening:-
Remove or comment out all short link provider variables from
.env: -
Restart Postiz:
Testing
Troubleshooting
Links not being shortened
Links not being shortened
If URLs are not shortened:
- Provider Not Configured: Verify environment variables are set
- Already Short: Links already using your short domain are skipped
- Invalid URL: Ensure URLs are properly formatted with http/https
- API Error: Check backend logs for API errors
API authentication failed
API authentication failed
If you see authentication errors:
- Dub: Verify token is valid and not expired
- Short.io: Check secret key is correct
- Kutt: Ensure API key has proper permissions
- LinkDrip: Verify API key is active
Custom domain not working
Custom domain not working
For custom domain issues:
- DNS Not Configured: Verify DNS records are correct
- Not Verified: Wait for domain verification to complete
- Wrong Domain Variable: Ensure
*_SHORT_LINK_DOMAINmatches your custom domain - SSL Issues: Ensure HTTPS is configured for custom domain
Analytics not showing
Analytics not showing
If click analytics are missing:
- LinkDrip: Analytics not implemented in Postiz for this provider
- API Errors: Check logs for analytics API failures
- No Clicks: Verify links have actually been clicked
- Time Delay: Some providers have delays in analytics reporting
Rate limiting errors
Rate limiting errors
If you hit rate limits:
- Upgrade Plan: Consider upgrading your provider plan
- Reduce Frequency: Limit number of posts with links
- Batch Processing: Postiz already batches link creation
- Self-Host: Use self-hosted Dub or Kutt for unlimited links
Self-Hosted Recommendations
For production deployments, consider self-hosting:Dub (Recommended)
- Open-source and actively maintained
- Full analytics and dashboard
- Easy deployment with Docker
- Custom domain support
- No API rate limits
Kutt
- Lightweight and simple
- Self-hosted with full control
- Custom domain support
- API-first design
Best Practices
- Configure only one provider to avoid confusion
- Use custom domains for professional appearance
- Monitor analytics regularly for engagement insights
- Set up proper DNS records for custom domains
- Test links before major campaigns
- Keep API keys secure and rotate regularly
- Monitor rate limits and upgrade plans as needed
Security Considerations
- Store API keys in environment variables only
- Use HTTPS for all short link redirects
- Monitor for suspicious click patterns
- Implement click fraud detection (via provider)
- Regularly audit shortened links
- Set expiration dates for temporary campaigns
- Use link passwords for sensitive content (if supported)
Next Steps
After configuring short links:- OAuth Apps - Set up social media integrations
- Email Setup - Configure transactional emails
- AI Integration - Enable AI features
- Billing Configuration - Set up Stripe payments