Overview
The admin dashboard provides a complete web interface for managing your Dubly instance. Access it at/admin on your Dubly domain to create links, view analytics, and manage settings without using the API.
Accessing the Dashboard
Navigate to the/admin path on any of your configured domains:
Authentication
The dashboard uses session-based authentication. Log in with the same password configured in theDUBLY_PASSWORD environment variable.
The admin password is the same as your API password. There is no separate admin credential.
Dashboard Features
Link Management
The main dashboard displays all your shortened links with:- Link cards showing slug, destination, title, and tags
- Click counts for each link
- Search functionality to filter links by slug, destination, title, or tags
- Pagination (12 links per page)
Creating Links
Click New Link to access the link creation form with the following fields:The long URL to redirect to
Select from your configured domains
Custom slug (auto-generated if empty)
Descriptive title for the link
Comma-separated tags for organization
Private notes about this link
UTM Parameters
The admin UI includes built-in support for adding UTM tracking parameters to your links. When creating or editing a link, you can specify:- utm_source - Identify the source (e.g., newsletter, twitter)
- utm_medium - Identify the medium (e.g., email, social)
- utm_campaign - Campaign name
- utm_term - Paid search keywords
- utm_content - Differentiate similar content
UTM parameters are automatically appended to your destination URL. If the URL already contains UTM parameters, they will be replaced with your new values.
- Enter your destination URL:
https://example.com/page - Fill in UTM fields in the admin form
- Dubly saves:
https://example.com/page?utm_source=twitter&utm_medium=social&utm_campaign=spring_sale
internal/web/links.go:246-257):
Editing Links
Click on any link card to edit:- Change destination URL
- Update slug or domain
- Modify metadata (title, tags, notes)
- Update UTM parameters
- View current click count
Deleting Links
Delete links with the trash icon. Deleted links:- Are soft-deleted (marked as
is_active = 0) - Return
410 Gonestatus on redirect attempts - Cannot be reactivated through the UI
- Still appear in the database for historical tracking
Analytics Dashboard
The dashboard home displays global statistics:Overall Metrics
- Total links - Count of all active links
- Clicks today - Total clicks in the last 24 hours
- Clicks all-time - Cumulative click count
Top Performers
- Top Referrers
- Top Countries
- Top Browsers
- Top Devices
Shows the top 5 traffic sources sending visitors to your links
Link-Specific Analytics
Click Analytics on any link card to view detailed metrics:- Click timeline - Chart showing clicks over time
- Geographic distribution - Country and city breakdown
- Device insights - Browser, OS, and device type
- Referrer analysis - Where clicks are coming from
- Recent clicks - Individual click events with timestamps
Domain Management
Access the domains page at/admin/domains to view:
- All configured domains from
DUBLY_DOMAINS - DNS status for each domain (resolves to your server IP or not)
- Manual refresh button to re-check DNS records
Dubly automatically checks DNS resolution on startup and caches the results. Use the refresh button if you’ve recently updated DNS records.
DNS Verification
The dashboard performs DNS lookups to verify each domain points to your server:Session Management
Sessions are implemented using HTTP-only cookies:- Duration: Sessions persist until you explicitly log out
- Security: Cookies are HTTP-only to prevent XSS attacks
- Logout: Click Logout in the navigation to end your session
internal/web/session.go:18):
Flash Messages
The admin interface uses flash messages to provide feedback:- Success (green) - “Link created”, “Link updated”
- Error (red) - Validation errors, database failures
- Info (blue) - General notifications
HTMX Integration
The dashboard uses HTMX for dynamic updates without full page reloads:- Search results update as you type
- Pagination loads new pages inline
- Delete actions remove cards without refresh
HX-Request header (internal/web/links.go:155):
Keyboard Shortcuts
While not explicitly documented in the source, the admin interface supports standard browser shortcuts:Ctrl+F/Cmd+F- Focus search box (browser default)Enter- Submit formsEsc- Close modals (if using any)
Customization
App Name
The dashboard title is customizable via theDUBLY_APP_NAME environment variable:
- Page titles
- Navigation header
- Login page
"Dubly"
Next Steps
Link Management
Learn about link creation via API
Analytics
Understand how analytics work
Configuration
Configure your Dubly instance
API Reference
Use the REST API