Skip to main content
The Attribution Report helps you understand which traffic sources, marketing campaigns, and channels drive conversions and revenue. This is essential for optimizing your marketing spend and understanding the customer journey.

What is an Attribution Report?

Attribution is the process of assigning credit to the marketing touchpoints that led to a conversion. The Attribution Report shows:
  • Which referrers drive conversions
  • Which paid advertising platforms generate results
  • Which UTM campaign parameters perform best
  • How different traffic sources contribute to goals and revenue

Key Concepts

Attribution Model

The method used to assign credit to touchpoints (first-click or last-click)

Touchpoint

Any interaction a user has with your marketing (ad click, referral visit, etc.)

Conversion Event

The goal or revenue event you’re measuring (signup, purchase, etc.)

Attribution Window

The time period before conversion to consider for attribution

Attribution Models

Umami supports two attribution models:

First-Click (First-Touch) Attribution

Gives 100% credit to the first touchpoint that brought the user to your site.When to use:
  • Understanding top-of-funnel effectiveness
  • Measuring awareness campaigns
  • Evaluating new user acquisition channels
  • Planning brand marketing budgets
Example:
User Journey:
1. Google Organic → First visit
2. Facebook Ad → Return visit
3. Direct → Return visit (conversion)

Credit: 100% to Google Organic
Advantages:
  • Shows which channels introduce new customers
  • Simple to understand and explain
  • Good for measuring brand awareness
Limitations:
  • Ignores the role of nurturing touchpoints
  • May overvalue top-of-funnel channels
First-click attribution is ideal for businesses focused on customer acquisition and brand awareness.

Attribution Report Components

The Attribution Report breaks down performance across multiple dimensions:
Shows which external websites drive conversions.Includes:
  • Referrer domain (e.g., google.com, facebook.com)
  • Number of conversions or revenue attributed
Use cases:
  • Identify valuable partnerships
  • Find guest posting opportunities
  • Track PR and link-building results
Only shows external referrers. Direct traffic and same-domain referrers are excluded.
Shows performance of your UTM-tagged campaigns.Available breakdowns:
  • utm_source: Campaign source (e.g., google, newsletter, affiliate)
  • utm_medium: Marketing medium (e.g., cpc, email, social)
  • utm_campaign: Campaign name (e.g., summer_sale_2024)
  • utm_content: Ad variant (e.g., banner_a, text_ad_b)
  • utm_term: Keyword terms for paid search
Use cases:
  • Compare campaign performance
  • Optimize ad creative and copy
  • Measure channel effectiveness
  • Calculate campaign ROI

Setting Up Attribution Tracking

1

Define Your Conversion Event

Choose what action you want to attribute (goal or revenue event).
  • Page view (e.g., /thank-you)
  • Custom event (e.g., purchase)
2

Choose Attribution Model

Decide whether first-click or last-click attribution best fits your business.
3

Add UTM Parameters

Tag all marketing campaigns with UTM parameters.
https://yoursite.com/landing?utm_source=facebook&utm_medium=cpc&utm_campaign=spring_sale
4

Configure the Report

Set the conversion event and attribution model in your report parameters.

API Usage

curl -X POST https://your-umami-instance.com/api/reports/attribution \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "websiteId": "your-website-id",
    "parameters": {
      "startDate": "2024-01-01T00:00:00Z",
      "endDate": "2024-01-31T23:59:59Z",
      "model": "last-click",
      "type": "path",
      "step": "/thank-you",
      "currency": "USD"
    },
    "filters": {}
  }'

Parameters

  • model: Attribution model (first-click or last-click)
  • type: Conversion type (path for page views, event for custom events)
  • step: The page path or event name that represents a conversion
  • currency (optional): For revenue attribution, specify currency code

Response Format

{
  "referrer": [
    { "name": "google.com", "value": 245 },
    { "name": "facebook.com", "value": 123 }
  ],
  "paidAds": [
    { "name": "Google Ads", "value": 189 },
    { "name": "Facebook / Meta", "value": 98 }
  ],
  "utm_source": [
    { "name": "newsletter", "value": 156 },
    { "name": "affiliate", "value": 87 }
  ],
  "utm_medium": [
    { "name": "email", "value": 156 },
    { "name": "cpc", "value": 287 }
  ],
  "utm_campaign": [
    { "name": "spring_sale", "value": 312 },
    { "name": "welcome_series", "value": 156 }
  ],
  "utm_content": [
    { "name": "banner_a", "value": 178 },
    { "name": "text_ad", "value": 134 }
  ],
  "utm_term": [
    { "name": "web analytics", "value": 45 },
    { "name": "privacy analytics", "value": 32 }
  ],
  "total": {
    "pageviews": 45230,
    "visitors": 12456,
    "visits": 15678
  }
}

Use Cases and Insights

Compare Marketing Channels

Understand which channels drive the most conversions.Analysis:
  1. Review utm_medium breakdown
  2. Compare conversions across email, social, paid, organic
  3. Calculate conversion rate by channel
  4. Determine which channels to invest in
Example insights:
  • Email drives 30% of conversions at lowest cost
  • Paid search has high volume but low conversion rate
  • Social media introduces new users (first-click) but email closes sales (last-click)
Run the same attribution report with both first-click and last-click models to understand the full customer journey.

UTM Parameter Best Practices

Use Consistent Naming

Create a naming convention and stick to it. Use lowercase and underscores.

Don't Use for Internal Links

UTM parameters are for external campaigns only. Don’t use on internal site links.

Document Your Campaigns

Keep a spreadsheet of all UTM parameters for consistency across your team.

Keep It Simple

Use clear, descriptive values. Avoid codes that only you understand.

UTM Naming Convention Example

utm_source:
  - google (paid)
  - facebook (paid)
  - newsletter (email)
  - linkedin (organic posts)

utm_medium:
  - cpc (cost-per-click)
  - cpm (cost-per-impression)
  - email (email marketing)
  - social (organic social)
  - referral (partner/affiliate)

utm_campaign:
  - {season}_{year}_{product} 
  - spring_2024_sale
  - q4_2024_product_launch
Use a URL builder tool to create consistently formatted UTM links and avoid typos.

Common Attribution Patterns

Users discover you on social media, research via search, then convert from email.First-click: Credit to social media Last-click: Credit to emailStrategy:
  • Invest in social for awareness
  • Capture emails early in journey
  • Nurture with email campaigns
User finds you organically, subscribes to email, converts from retargeting ad.First-click: Credit to organic search Last-click: Credit to paid adStrategy:
  • SEO brings quality traffic
  • Email list is valuable
  • Retargeting seals the deal

Troubleshooting Attribution

Issue: Last-click model attributes too much to direct traffic.Why: Users often return directly after initial discovery.Solution: Use first-click attribution or track the last non-direct touchpoint.
Issue: Conversion numbers differ between Umami and ad platforms.Why:
  • Different attribution windows
  • Ad blockers affecting tracking
  • View-through conversions counted differently
Solution: Understand that some variance is normal. Focus on trends rather than exact numbers.
Issue: Some traffic shows “(not set)” or empty UTM values.Why: UTM parameters weren’t included in the link or were stripped.Solution:
  • Audit all campaign links
  • Use link shorteners that preserve parameters
  • Implement link validation before campaigns launch

Best Practices

  1. Compare attribution models: Run reports with both first-click and last-click to see the full picture
  2. Set up consistent UTM tagging: Use the same naming convention across all campaigns
  3. Track both goals and revenue: Measure both conversion events and monetary value
  4. Regular reporting: Review attribution weekly to catch issues and optimize campaigns
  5. Combine with other reports: Use Funnel and Journey reports to understand the complete user path
Attribution models are simplifications. No single model tells the complete story. Use multiple models and reports to inform decisions.

Next Steps

UTM Tracking

Deep dive into UTM parameter performance

Revenue Report

Track the monetary value of conversions

Build docs developers (and LLMs) love