Attribution & Tracking Setup Guide
Proper tracking is the foundation of successful ad campaigns. Without accurate tracking, you can't measure performance, optimize campaigns, or make data-driven decisions. This guide covers UTM parameters, conversion tracking, attribution windows, and how to interpret your data.
Why Tracking Matters
Accurate tracking enables you to:
- Measure campaign performance accurately
- Calculate ROAS, CPA, and other metrics (use our ROAS Calculator and CPA Calculator)
- Optimize campaigns based on real data
- Understand which channels drive conversions
- Allocate budget effectively (use our Budget Allocator)
UTM Parameters Explained
What are UTM Parameters?
UTM (Urchin Tracking Module) parameters are tags added to URLs that help you track where your traffic comes from in Google Analytics and other analytics tools.
The 5 UTM Parameters:
- utm_source: Where traffic comes from (e.g., facebook, google, email)
- utm_medium: Marketing medium (e.g., cpc, social, email)
- utm_campaign: Campaign name (e.g., summer_sale, product_launch)
- utm_term: Keyword (mainly for paid search)
- utm_content: Specific ad/content identifier
- Your base URL
- Source (platform)
- Medium (ad type)
- Campaign name
- Optional: Content identifier
- Use lowercase
- Be consistent: "facebook" not "Facebook" or "fb"
- Common sources: facebook, google, tiktok, linkedin, email
- Use lowercase
- Common mediums: cpc, social, email, display, retargeting
- Be descriptive: "cpc" for paid search, "social" for organic social
- Use lowercase with underscores
- Be descriptive: "summer_sale_2024" not "campaign1"
- Include date if seasonal: "black_friday_2024"
- Keep it concise but clear
- Use for A/B testing: "ad_variant_a", "headline_test_b"
- Identify specific creatives: "video_ad_1", "carousel_ad_2"
- Optional but helpful for detailed tracking
- Install Facebook Pixel in your website header
- Set up Standard Events (Purchase, Lead, AddToCart, etc.)
- Test events using Facebook's Event Testing Tool
- Verify events are firing correctly
- Set up Conversions API for better tracking
- Create conversion actions in Google Ads
- Install Google Tag or gtag.js
- Add conversion tracking code to thank you/confirmation pages
- Test conversions using Google's Tag Assistant
- Verify conversions are recording
- Install GA4 tracking code
- Set up conversion events
- Link GA4 to Google Ads (if using)
- Configure data streams
- Test events using GA4 DebugView
- Install TikTok Pixel in website header
- Set up Standard Events
- Test events using TikTok's Events Manager
- Verify tracking is working
- Gives 100% credit to the last touchpoint
- Simple but ignores other touchpoints
- Common default for many platforms
- Gives 100% credit to the first touchpoint
- Useful for awareness campaigns
- Less common in practice
- Distributes credit equally across all touchpoints
- Gives full picture of customer journey
- More complex to analyze
- Gives more credit to touchpoints closer to conversion
- Balances first and last touch
- Good for longer sales cycles
- 1-day click: Conversion within 1 day of click
- 7-day click: Conversion within 7 days of click (default)
- 1-day view: Conversion within 1 day of view (no click)
- 28-day click: Conversion within 28 days of click
- 1-day click: Conversion within 1 day
- 7-day click: Conversion within 7 days (default)
- 30-day click: Conversion within 30 days
- View-through: 1-day view window
- Short Windows (1-7 days): Better for immediate conversions, lower-funnel campaigns
- Long Windows (28-30 days): Better for longer sales cycles, higher-funnel campaigns
- Consider Your Sales Cycle: Match window to typical time to convert
- Define your conversion events
- Plan UTM naming conventions
- Decide on attribution windows
- Document your tracking setup
- Install platform pixels/tags
- Set up Google Analytics
- Configure conversion events
- Test all tracking
- Use our UTM Builder for all campaigns
- Be consistent with naming
- Document your UTM structure
- Test URLs before launching
- Test conversion events
- Verify UTM parameters in analytics
- Check attribution windows
- Compare data across platforms
- Different UTM for each platform
- Different UTM for each campaign
- Different UTM for A/B test variants
- Add UTM URLs to all ad destinations
- Use consistent naming
- Update URLs when campaigns change
- Go to Google Analytics → Acquisition → Campaigns
- See traffic by source, medium, campaign
- Compare performance across campaigns
- Link to conversion data
- Compare campaigns using UTM data
- Identify top-performing sources
- Optimize based on analytics insights
- Use data for budget allocation
- Acquisition → Campaigns: See performance by UTM campaign
- Acquisition → Source/Medium: See performance by source and medium
- Conversions → Goals: See conversion data by campaign
- Behavior → Site Content: See which pages convert best
- Sessions: Traffic volume by campaign
- Bounce Rate: Quality of traffic
- Conversion Rate: Effectiveness of campaigns
- Revenue: Financial impact (use with our ROAS Calculator)
- Track all touchpoints in customer journey
- Use analytics tools with attribution modeling
- Understand full conversion path
- Use Conversions API (Meta) or Enhanced Conversions (Google)
- More accurate than browser-based tracking
- Better privacy compliance
- Track users across devices
- Use platform-specific tools
- Understand full customer journey
- Get consent before tracking
- Use privacy-compliant tracking methods
- Allow users to opt out
- Document your tracking practices
- Inform users about tracking
- Provide cookie consent options
- Respect user preferences
- ✓ Install all tracking pixels/tags
- ✓ Set up conversion events
- ✓ Create UTM URLs for all ads
- ✓ Test all tracking
- ✓ Verify attribution windows
- ✓ Document tracking setup
- ✓ Verify tracking is working
- ✓ Check data in analytics
- ✓ Compare across platforms
- ✓ Monitor for issues
- ✓ Update UTM URLs as needed
- ✓ Review tracking data regularly
- ✓ Test new tracking features
- ✓ Update documentation
- ✓ Optimize based on data
- UTM Builder: Use our UTM Builder to create tracking URLs
- ROAS Calculator: Use our ROAS Calculator to measure performance
- CPA Calculator: Use our CPA Calculator to track acquisition costs
- Campaign Scheduler: Use our Campaign Scheduler to plan tracking tests
- Meta:
?utm_source=facebook&utm_medium=cpc&utm_campaign=summer_sale_2024 - Google:
?utm_source=google&utm_medium=cpc&utm_campaign=summer_sale_2024 - Purchase (primary)
- Add to Cart (secondary)
- Email Sign-up (secondary)
- Meta: 7-day click, 1-day view
- Google: 30-day click, 1-day view
Example UTM URL:
https://yoursite.com/product?utm_source=facebook&utm_medium=cpc&utm_campaign=summer_sale&utm_content=ad_variant_a
Creating UTM Parameters
Use Our UTM Builder:
Our UTM Builder makes it easy to create properly formatted UTM URLs. Simply enter:
UTM Naming Best Practices:
Source:
Medium:
Campaign:
Content:
Conversion Tracking Setup
What is Conversion Tracking?
Conversion tracking records when users complete desired actions (purchases, sign-ups, downloads) after clicking your ads.
Platform-Specific Setup:
Meta (Facebook/Instagram) Pixel:
Google Ads Conversion Tracking:
Google Analytics 4 (GA4):
TikTok Pixel:
Attribution Windows
What is Attribution?
Attribution determines which ad or touchpoint gets credit for a conversion. Attribution windows define how long after a click or view a conversion can be attributed.
Common Attribution Models:
Last-Click Attribution:
First-Click Attribution:
Linear Attribution:
Time-Decay Attribution:
Attribution Windows:
Meta Attribution Windows:
Google Ads Attribution Windows:
Choosing Attribution Windows:
Setting Up Proper Tracking
Step 1: Plan Your Tracking Structure
Step 2: Install Tracking Codes
Step 3: Create UTM URLs
Step 4: Verify Tracking
UTM to Analytics Workflow
1. Create UTM URLs
Use our UTM Builder to create URLs for each ad:
2. Use UTM URLs in Ads
3. View Data in Analytics
4. Interpret the Data
Common Tracking Mistakes
Mistake 1: Inconsistent UTM Naming
Problem: "facebook" vs "Facebook" vs "fb" creates separate entries
Solution: Use consistent lowercase naming, document conventions
Mistake 2: Not Using UTM Parameters
Problem: Can't track which campaigns drive traffic
Solution: Always use UTM parameters, use our UTM Builder
Mistake 3: Wrong Attribution Windows
Problem: Missing conversions or double-counting
Solution: Match windows to your sales cycle
Mistake 4: Not Testing Tracking
Problem: Broken tracking goes unnoticed
Solution: Test all tracking before and after launch
Mistake 5: Ignoring View-Through Conversions
Problem: Missing impact of display/video ads
Solution: Consider view-through attribution for awareness campaigns
Interpreting Tracking Data
In Google Analytics:
Key Metrics to Review:
Advanced Tracking Strategies
1. Multi-Touch Attribution
2. Server-Side Tracking
3. Cross-Device Tracking
Privacy and Compliance
GDPR Considerations:
Cookie Policies:
Tracking Checklist
Before Launch:
After Launch:
Ongoing:
Tools for Tracking
Example Tracking Setup
Campaign: Summer Sale 2024
Platforms: Meta, Google Ads
UTM Structure:
Conversion Events:
Attribution Windows:
Related Tools: Create UTM URLs with our UTM Builder, track performance with our calculators, and plan campaigns with our Campaign Scheduler.
Related Guides: Learn about campaign planning in our Campaign Planning Guide and metrics in our Metrics Guide.