No data available
; + } + + const maxCount = Math.max(...data.map((d) => d.count), 1); + const chartHeight = 200; + + return ( + + ); + }; + + if (isLoading) { + return ( +No analytics data available
+Track your short link performance
+Total Links
+{summary.total_links}
+Total Clicks
+{summary.total_clicks}
+No data available
+ ) : ( +| Short Code | +Title | +Clicks | +Action | +
|---|---|---|---|
| {link.short_code} | +{link.title || '—'} | +{link.clicks} | ++ + | +
Enterprise Feature
++ Advanced analytics (detailed breakdowns, referrers, device/browser data) are + available on the Professional or Enterprise plans. Please upgrade your license + to access these features. +
+Total Clicks
+{drillDown.analytics.total_clicks}
+| Referrer | +Count | +
|---|---|
| {ref.referer || '(direct)'} | +{ref.count} | +
{collection.name}
+ {collection.description && ( +{collection.description}
+ )} + {collection.link_count !== undefined && ( +{collection.link_count} links
+ )} +Organize your short links into collections
++ No collections yet. {canEdit && 'Create your first collection!'} +
+Manage your shortened URLs
+No links found. {canEdit && 'Create your first link!'}
+| Short Code | +Title | +Long URL | +Clicks | +Status | +Created | +Actions | +
|---|---|---|---|---|---|---|
| + + | +{link.title || '—'} | ++ + {link.long_url.substring(0, 50)}... + + | +{link.click_count} | ++ + {link.is_active ? 'Active' : 'Inactive'} + + | ++ {new Date(link.created_at).toLocaleDateString()} + | +
+
+
+ {canEdit && (
+ <>
+
+
+ >
+ )}
+
+ |
+