Campaign Analytics
Track UTM campaigns and attribution
Overview
Campaign analytics endpoints help you track the performance of your marketing campaigns through UTM parameters and conversion attribution.
Campaign Endpoints
UTM Parameter Tracking
Supported UTM Parameters
- utm_source: Traffic source (e.g., google, facebook, newsletter)
- utm_medium: Marketing medium (e.g., cpc, email, social)
- utm_campaign: Campaign name (e.g., spring_sale, product_launch)
- utm_content: Ad content or creative (e.g., banner_ad, text_link)
- utm_term: Keyword or search term (e.g., analytics_software)
UTM Parameter Sources
You can extract UTM parameters from:
- URL: From query parameters in the page URL
- Headers: From custom headers (for server-side tracking)
Usage Examples
Get Campaign Performance Overview
Get Campaign Data for Specific Time Range
Track Email Campaign Performance
Analyze Google Ads Performance
Campaign Analysis Patterns
ROI Analysis
A/B Testing Campaign Content
Channel Performance Comparison
Keyword Performance (PPC)
Conversion Events
You can track conversions for any custom event:
E-commerce Conversions
Lead Generation Conversions
SaaS Conversions
Campaign Attribution Models
First-Touch Attribution
Hardal tracks the first UTM parameters a visitor encounters, giving credit to the initial campaign that brought them to your site.
Session-Based Attribution
Each session can have its own UTM parameters, allowing you to track campaign performance within individual sessions.
Best Practices for Campaign Tracking
Consistent Naming: Use consistent naming conventions for your UTM parameters across all campaigns.
URL Encoding: Ensure UTM parameters are properly URL encoded, especially for special characters.
Campaign Hierarchy: Use a logical hierarchy: source → medium → campaign → content → term.
UTM parameters are case-sensitive. “Google” and “google” will be treated as different sources.
Campaign URL Examples
Google Ads Campaign
Facebook Social Campaign
Email Newsletter
Affiliate Marketing
Integration with Analytics Tools
Google Analytics UTM Compatibility
Hardal’s UTM tracking is fully compatible with Google Analytics UTM parameters, making it easy to migrate or run parallel tracking.
Custom Campaign Parameters
You can also track custom campaign parameters beyond the standard UTM set by including them in your event data.
Campaign Reporting Metrics
Key Metrics Provided
- Visitors: Total unique visitors from the campaign
- Conversions: Number of conversion events
- Conversion Rate: Percentage of visitors who converted
- Visitor Percentage: Share of total traffic
- Revenue: Total revenue attributed (if tracking purchase events)
- Cost per Visitor: If cost data is available
Performance Indicators
- High-performing campaigns: High conversion rate and visitor volume
- Efficient campaigns: Good conversion rate with reasonable cost
- Awareness campaigns: High visitor volume, lower conversion rate
- Targeted campaigns: Lower volume but high conversion rate