Overview
Macondo Link Manager provides powerful analytics to track link performance across your organization. View metrics at multiple levels - from individual links to entire clients - with automatic bot detection to ensure data accuracy.Multi-Level Views
Analytics for links, campaigns, clients, or entire agency
Bot Filtering
Intelligent bot detection excludes fake traffic
Geographic Data
Track clicks by country and city
Time-Based Analysis
Filter by custom date ranges
Dashboard Types
The analytics system provides four distinct dashboard views:1. General Overview
Agency-wide metrics across all links for the authenticated user.- Total clicks across all links
- Number of active links
- Click trends over time (last 30 days)
- Top browsers, countries, and cities
2. Client Dashboard
Metrics for all links associated with a specific client.- Client-specific click totals
- Active links for this client
- Performance trends
- Geographic and browser breakdowns
3. Campaign Dashboard
Analytics for links within a specific campaign.- Campaign-specific metrics
- Links in this campaign
- Campaign performance trends
- Detailed click analytics
Campaign dashboards verify that the authenticated user has links in the campaign before showing data. This prevents unauthorized access to campaign analytics.
4. Link Metrics
Detailed analytics for an individual link.- Click history by date
- Browser distribution
- Geographic breakdown
- Configurable time range (1-365 days)
Metrics Tracked
Click Data
Every click on a shortened link records:When the click occurred (UTC)
IP address of the visitor (if available)
Browser and device information
Country derived from IP geolocation
City derived from IP geolocation
Whether this click was identified as bot traffic
Explanation for why click was flagged as bot
Click Recording Process
Bot Filtering Mechanism
The system employs sophisticated bot detection to maintain analytics accuracy.Detection Methods
User Agent Analysis
Identifies known bot patterns in browser strings
Request Headers
Examines HTTP headers for bot signatures
Burst Detection
Flags rapid repeated clicks from same source
ASN Organization
Checks if IP belongs to known hosting/datacenter networks
Bot Detection Implementation
Common Bot Reasons
| Reason | Description |
|---|---|
user-agent-bot | User agent string indicates a bot |
click-burst | Too many clicks in short time period |
datacenter-ip | IP belongs to hosting/datacenter ASN |
missing-headers | Expected browser headers absent |
automation-tools | Signature of automation software detected |
Geographic Data for Bots
To optimize performance:- Bot traffic: Geolocation lookup is skipped;
countryandcityarenull - Human traffic: Full geolocation is performed
Dashboard Response Structure
All overview endpoints return data in this format:Summary Metrics
Total number of legitimate (non-bot) clicks in the period
Number of links with at least one click in the period
Human-readable description of the time range
Chart Data
Daily click counts for trend visualization
Most common browsers ordered by click count
Geographic distribution by country
Geographic distribution by city
Entries with
null for country or city represent clicks where geolocation data couldn’t be determined (typically VPNs or privacy-focused browsers).Top Clients Ranking
View which clients are generating the most traffic.API Endpoint
Response
Time-Based Filtering
Link metrics support custom time ranges for flexible analysis.API Endpoint
Parameters
Number of days to include in metricsRange: 1-365 days
Example Queries
Browser Analytics
Understand which browsers your audience uses.Browser Detection
Browser information is extracted from the User-Agent string:Common Browsers Tracked
- Chrome
- Safari
- Firefox
- Edge
- Opera
- Samsung Internet
- Mobile browsers (iOS Safari, Chrome Mobile)
Browser detection is performed server-side during click recording and stored for efficient querying.
Geographic Analytics
Track where your traffic originates.Geolocation Process
Implementation
Geographic Data Limitations
VPNs
May report VPN server location, not user’s actual location
Privacy Browsers
Some browsers mask IP addresses
Corporate Networks
May show headquarters location for distributed teams
Mobile Networks
City accuracy varies by carrier
Campaign Analytics Authorization
Campaign dashboards include access control.Authorization Check
Before showing campaign analytics, the system verifies:- Campaign exists: The campaign ID is valid
- User has links: The user has at least one link in this campaign
Error Response
If unauthorized:403 Forbidden
This prevents users from viewing analytics for campaigns they’re not involved with, even though clients and campaigns are globally visible.
Data Retention
Click data is retained indefinitely by default.What’s Stored
- Every individual click record
- All associated metadata (timestamp, IP, geolocation, etc.)
- Bot classification and reason
Cascade Deletion
Click data is automatically deleted when:- Link deleted: All clicks for that link are removed
- Client deleted: All clicks for links under that client are removed
- User deleted: All clicks for links created by that user are removed
Performance Optimization
Database Indexes
The clicks table includes indexes for fast querying:Bot Traffic Exclusion
By filtering bots at the query level, analytics remain fast:Analytics API Summary
| Endpoint | Scope | Description |
|---|---|---|
GET /dashboard/overview | Agency | All user’s links (30 days) |
GET /dashboard/clients/:id/overview | Client | All links for a client |
GET /dashboard/campaigns/:id/overview | Campaign | All links in a campaign |
GET /dashboard/top-clients | Agency | Top 5 clients by clicks |
GET /links/:id/metrics?days=N | Link | Single link (custom range) |
Visualization Recommendations
Click Trends
Best visualized as:- Line chart: Show click trends over time
- Area chart: Emphasize volume changes
- Bar chart: Compare discrete time periods
Browser Distribution
Best visualized as:- Pie chart: Show proportional breakdown
- Horizontal bar chart: Rank browsers by usage
- Donut chart: Clean percentage view
Geographic Data
Best visualized as:- Map view: Plot countries with heat intensity
- Table: List countries/cities with click counts
- Bar chart: Compare top locations
Aggregate Metrics
Best visualized as:- Stat cards: Highlight key numbers (total clicks, active links)
- Comparison cards: Show period-over-period changes
- Gauge charts: Display progress toward goals
Best Practices
Monitor Bot Rates
Regularly check the ratio of bot to human traffic to identify attacks
Compare Time Periods
Use custom date ranges to identify trends and seasonality
Geographic Insights
Use location data to optimize campaign timing and targeting
Browser Compatibility
Ensure your destination pages work well on top browsers
