Skip to main content
This guide covers setting up attribution tracking, comparing attribution models, and analyzing which channels drive onchain conversions.

What you’ll learn

  • Set up UTM tracking for all marketing channels
  • Understand first-touch vs. last-touch attribution
  • Measure true ROI by channel (to the transaction level)
  • Optimize budget allocation based on conversion data

Part 1: The Attribution Challenge in Crypto

Why traditional attribution fails

Traditional analytics measure clicks and visits. For crypto apps, this misses what matters:

The crypto user journey

A typical onchain user touches multiple channels:
  1. Discovery: Sees your tweet, ad, or mention
  2. Research: Reads about you on Discord, docs, or DeFiLlama
  3. First visit: Lands on your site (often without converting)
  4. Return visit: Comes back from a different source
  5. Conversion: Connects wallet and transacts
Each touchpoint matters. The question is: which one gets credit?

Part 2: How to Set Up UTM Tracking

UTM parameter basics

UTM parameters let you track where users come from:

Where to add UTMs

Add UTM parameters to every link you control: Social media:
Email campaigns:
Partner/referral links:
Paid ads:
You can use this free UTM link generator to generate UTM links.

UTM naming conventions

Use consistent naming to make analysis easier: Recommended format:
  • Lowercase only
  • Underscores for spaces
  • Include date/month for campaigns: campaign_name_mmyy

Part 3: How to Set Up Referral Tracking

Formo automatically captures referral codes alongside UTM parameters.

Referral code basics

Add a ref parameter to your referral links:
When a user lands with a ref parameter, Formo captures it and associates it with the user’s session. You can then trace connect sessions, events, and users back to specific referral codes.

Where to add referral codes

User-generated referral links:
Partner referral links:
Influencer referral links (combine with UTMs for full attribution):

Referral naming conventions

Analyze referral performance

The Overview page has a dedicated referral chart, and the Users page and Wallet Profiles show you which referral code acquired each user. Use Ask AI or the Explorer to query referral data:
“Show me wallet connects and transactions grouped by ref parameter for the last 30 days”

Part 4: Understand Attribution Models

Formo supports multiple attribution models. Each gives credit differently.

First-touch attribution

How it works: 100% credit to the first channel that introduced the user. Best for: Understanding discovery channels. Example:
  1. User finds you via Twitter (first touch)
  2. Returns via Discord link
  3. Converts via direct visit
→ Twitter gets 100% credit

Last-touch attribution

How it works: 100% credit to the last channel before conversion. Best for: Understanding what drives final conversions. Example:
  1. User finds you via Twitter
  2. Returns via Discord link
  3. Converts via direct visit (last touch)
→ Direct gets 100% credit

Which model to use?

Part 5: How to Analyze Attribution in Formo

View attribution in Overview

1

Go to Overview in the Formo Dashboard

2

Find the Channels, Referrers, Referrals, and UTM tabs

These sit alongside your other traffic breakdowns (Pages, Countries, Devices).
3

Select different units (users, volume, revenue)

You can apply filters on the overview page to see attribution by different segments.
Each tab answers a different attribution question: Formo automatically classifies every session into a channel at ingestion time, using a priority-ordered ladder over the referrer domain, utm_medium, and ad-platform click IDs. See the full channel classification table for how each of the 13 channels is detected.

Key metrics by source

For each traffic source, the Channels/Referrers/Referrals/UTM tabs show raw counts: These tabs show one metric at a time, not a percentage. To see an actual connect rate (visitor → wallet) or transaction rate (wallet → transaction) by source, build a funnel with a breakdown dimension, covered below.

Create custom attribution charts

Beyond the built-in tabs, build custom charts to track attribution over time. Use Ask AI for quick answers, or the SQL editor for full control. See Charts for the full guide to creating, organizing, and sharing charts. Ask AI examples:
“Compare wallet connects by utm_source for the last 30 days”
“Show me transactions and volume by utm_campaign this month”
“What are the top 5 first-touch sources for users who transacted?”
“Which utm_source has the highest transaction volume per visitor?”
Attribution chart ideas: Attribution funnel:
1

Go to Dashboards, click Add Chart, and select the Funnel chart type

2

Add steps: Visit → Connect → Transaction

3

Add a breakdown dimension: Referrer, Referral, UTM Source/Medium/Campaign/Content/Term, Builder Codes, Device, Country, Browser, or OS

4

Compare conversion rates across each value

Calculate true ROI

For paid campaigns, calculate cost per conversion:
Example: In this example, Twitter Ads has the best ROI.

Part 6: How to Optimize Your Marketing

Identify your best channels

From your attribution data, categorize channels: High-volume, high-conversion:
  • Scale these immediately
  • Allocate more budget
  • Test similar channels
High-volume, low-conversion:
  • Improve landing pages
  • Refine targeting
  • Test different messaging
Low-volume, high-conversion:
  • Increase investment
  • Find ways to scale
  • Understand what makes them work
Low-volume, low-conversion:
  • Reduce or cut spend
  • Test improvements before continuing
  • Consider audience mismatch

Optimize by user quality

Don’t just measure conversions. Measure user quality:
  • Filter users by UTM source
  • Compare average net worth by source
  • Compare retention by source
  • Compare volume per user by source
Example insight:
Twitter drives more users, but Discord users have 3x higher average net worth and 2x better retention.

Multi-touch optimization

If using linear attribution:
  • Identify common multi-touch paths
  • Ensure each touchpoint is optimized
  • Don’t cut channels that assist conversions
Example path: Twitter (awareness) → DeFiLlama (research) → Direct (conversion) All three channels contributed. Cutting Twitter would reduce DeFiLlama traffic.

Part 7: Advanced Attribution Tactics

Cross-channel attribution

Track users across marketing channels:
  • Use consistent UTM naming
  • Track first-touch and last-touch separately
  • Analyze common paths with Flows

Cohort-based attribution

Compare user quality by acquisition cohort:
  • Create segments by first-touch source
  • Measure retention for each segment
  • Calculate LTV by acquisition source
Example:

Attribution checklist

  • UTM parameters on all social links
  • UTM parameters on all email links
  • UTM parameters on all partner links
  • UTM parameters on all paid ads
  • Referral codes on all partner and influencer links
  • Consistent naming conventions
  • Attribution dashboard created
  • Weekly review of channel performance

Summary

You’ve learned how to:
  1. Set up UTM tracking across all marketing channels
  2. Set up referral tracking with ref codes
  3. Understand attribution models and when to use each
  4. Analyze attribution in Formo with Channels, Referrers, Referrals, and UTM, plus custom charts
  5. Calculate true ROI including conversion and user quality
  6. Optimize budget allocation based on data

FAQ

Yes. When a user lands on your app, Formo automatically captures UTM parameters, the referrer, and any ref referral code in the URL, and associates them with the user’s session and wallet.
Formo records both first-touch and last-touch attribution. You can view either model on the Users page to understand the full user journey.