Digital Marketing

See Exactly Which Channels Drive Real Revenue

Learn how to combine analytics, UTMs, and your CRM to track revenue by traffic source, fix "(not set)" data, and double down on the campaigns that actually close deals.
Attribution is broken

Tracking revenue by traffic source helps you understand which marketing channels generate the most income — not just leads.

The core challenge is that not all leads turn into paying customers. Revenue attribution shows which channels bring in profitable customers, helping you allocate your budget with confidence instead of guesswork. The goal isn't to count clicks — it's to connect marketing activity to money in the bank.

Most analytics tools are built around sessions and pageviews, not revenue. That gap between "a user visited from a Facebook ad" and "that user became a $4,000 customer three months later" is where attribution breaks down for most teams.

The common culprits:

  • Missing or inconsistent UTM parameters — traffic arrives untagged and gets lumped into "Direct" or "(not set)"
  • Short attribution windows — the average B2B deal takes over 90 days to close, but most tools only look back 30–60 days

Solving these problems requires a combination of disciplined tagging, the right tooling, and CRM integration.

The process in simple terms:

  • Key Tools: Use Madlitics for traffic insights and integrate it with a CRM like Salesforce or HubSpot to connect leads to revenue.
  • Setup Basics: Configure your CRM to track revenue-driving events, use UTM parameters for accurate source tracking, and ensure data accuracy.
  • Analyze Results: Identify top-performing channels, landing pages, and trends — then adjust your campaigns based on revenue insights.

Tag Your Traffic Sources Consistently

Every paid, social, and email link you share should include UTM parameters so you know exactly where visitors came from. The three essentials are:

  • utm_source — the platform (e.g., linkedin, facebook, newsletter)
  • utm_medium — the channel type (e.g., cpc, email, organic)
  • utm_campaign — the specific campaign (e.g., q2_launch, spring_sale)

For example, a Facebook ad promoting a spring sale might use:utm_source=facebook, utm_medium=cpc, utm_campaign=spring_sale

Consistency matters more than you'd think. Facebook and facebook will appear as two separate sources in your reports. Establish a naming convention and document it somewhere your whole team can reference.

For Google Ads, auto-tagging handles this automatically via GCLID identifiers. For everything else — social posts, email campaigns, partner referrals — manual UTM tagging is the standard.

Pro tip: When a visitor fills out a form, their UTM parameters should be captured and stored alongside their contact record in your CRM. Without this, you lose the thread between the click and the eventual deal. Madlitics handles this automatically at the point of form submission, so attribution data travels with the lead through your entire sales process.

Define What "Revenue" Means in Your Tracking Setup

For e-commerce, this is straightforward — you track completed purchases with transaction values attached.

For B2B and lead generation, it's more nuanced. You need to decide which events carry revenue weight:

  • A booked demo might represent $500 in pipeline value
  • A "Closed Won" deal synced from your CRM represents actual revenue
  • A qualified lead might be worth a defined estimated value for reporting purposes

The key is feeding real revenue data back into your analytics — not just tracking form fills and calling them conversions. This is where CRM integration becomes essential. When your CRM knows which campaigns sourced which deals, you can calculate true revenue by channel rather than rely on proxy metrics.

Set Up Persistent Attribution

For businesses with long or complex customer journeys, persistent attribution is what separates useful data from misleading data. The average B2B buyer takes over 100 days to close a deal — meaning that if a lead is sourced in January and converts in April, a standard analytics setup will often lose the original attribution entirely.

Why Standard Tools Fall Short

Session-based tracking creates gaps that skew revenue data. When a visitor returns to your site after days or weeks, their session is frequently labeled as "Direct" or "(not set)" — because the tool can't maintain the connection between the original traffic source and the final conversion, especially across multiple sessions or devices.

As Sagar Rabadiya from SR Analytics puts it: "Your CRM is a goldmine of post-click data that GA4 can't see — unless you connect them."

Standard tools also tend to assign the same static value to all conversions regardless of actual deal size, which distorts revenue reporting for anyone with variable deal sizes.

How Persistent Attribution Works

Persistent attribution tracks visitors across multiple sessions using first-party cookies, click IDs, and UTM parameters. Platforms like Madlitics retain this information throughout the entire customer journey — even if the conversion happens weeks or months later.

When a lead fills out a form, their attribution data is stored alongside their contact record in your CRM. Later, when that lead becomes a paying customer, you can trace the revenue back to the original marketing touchpoint. This approach also ensures upper-funnel channels — like display ads or social media — get the credit they deserve, even when they don't drive the final click.

In practice, the results can be significant. One mid-sized B2B SaaS company discovered that campaigns with fewer leads were actually driving higher revenue once they connected their CRM data to their attribution. Adjusting their budget based on those insights led to a 25% increase in total revenue.

Cleaning and Normalizing Attribution Data

Persistent attribution works best when paired with clean, normalized data. Labels like "Unassigned", "(not set)", or inconsistent campaign names make it nearly impossible to compare performance across channels — and they're more common than most teams realize.

Ryan Koonce, CEO of Attribution, puts it plainly: "The primary problem that most marketers run into is they've actually never seen attribution that works."

Data normalization ensures every form submission captures consistent, accurate attribution details — eliminating the need for manual cleanup. Madlitics handles this automatically at the point of form submission, which is especially valuable for teams managing long sales cycles where connecting early touchpoints to downstream revenue requires ongoing data integrity.

Analyze Revenue by Traffic Source

Once tracking is in place, the analysis is where the real value shows up. You're looking for:

  • Which channels generate the most revenue — not just the most traffic or leads. Ten high-value deals outperform a hundred low-quality leads.
  • Which channels have the best revenue-per-lead — this shows where lead quality is highest, and where to invest more.
  • Which channels assist conversions — upper-funnel channels rarely get the last click, but they often influence the journey. Assisted conversion data helps you avoid cutting channels that are quietly doing a lot of work.
  • Trends over time — are certain channels improving or declining? Revenue-by-source data over time is one of the most useful inputs for budget planning.

Break Down Revenue by Source and Landing Page

Linking traffic source data with landing page performance gives a clear picture of which pages generate the most revenue for each channel. You might find, for instance, that a paid search campaign converts significantly better when visitors land on a dedicated page rather than a general content page.

If you're in B2B, storing UTM parameters in your CRM alongside contact records allows you to link closed deals back to their originating landing pages — giving you a complete view from first click to closed deal.

Identify Underperforming Channels

Don't just look at total revenue — dig into the quality of each channel's performance. A channel with lots of transactions but low average order values might be a candidate for upselling. Channels with high ad spend but low revenue could indicate inefficient budget allocation worth revisiting.

Some channels won't drive the final click but play a crucial role in assisting conversions. Comparing last-click against data-driven attribution models can reveal channels that are being systematically undervalued.

As Gavin Hall from Magnet puts it: "Attribution models aren't neutral. They are value judgments, dressed up as math."


For B2B businesses with an average lead-to-close time over 90 days, extending your attribution window is important to capture those early touchpoints accurately. And if you're still seeing "(not set)" or "Unassigned" in your reports, treat it as a signal — tracking gaps that need fixing before drawing any conclusions.

Optimizing Marketing Investments

Understanding where your revenue comes from changes how you allocate your budget. The channels generating the most leads are often not the ones closing the most deals. Shifting focus from lead volume to actual revenue can reveal those gaps — and reshape your priorities.

The case for this approach is straightforward: reallocating budget based on revenue-focused data, rather than lead volume, can materially improve overall marketing ROI. The channels that look less exciting on a leads dashboard sometimes turn out to be your most valuable.

Key Takeaways

Effective revenue attribution comes down to three things working together: persistent attribution, clean data, and CRM integration. Persistent attribution keeps the original source connected across long sales cycles. Clean data eliminates the "(not set)" noise. And CRM integration connects online behaviors to offline revenue — closing the loop.

Without these elements, budget decisions are based on incomplete or misleading data.

Madlitics is built to bridge these gaps. It ensures every form submission carries full marketing context — original source, landing page, campaign details — and connects that data to revenue through your CRM. Upper-funnel channels get the credit they deserve, even when they don't deliver the final click.

Madlitics multi-channel attribution visualization, showing marketing platforms like TikTok, Instagram, Google, and Facebook. The graphic highlights how different sources contribute to high-performing marketing channels.
1. Add UTM parameters to all inbound links
Any marketing effort that drives traffic — whether it’s a paid ad, an email campaign, or an organic post — should have properly structured URLs that clearly define the visitor’s origin. Setting it up is a straightforward process that starts with ensuring all inbound links include UTM parameters.

A LinkedIn campaign, for example, might link to:
https://yoursite.com/?utm_source=linkedin&utm_medium=paidsocial&utm_campaign=q1_promo
Screenshot of a form builder interface with a highlighted 'Hidden Input' field. Accompanied by text explaining how to install and set up Madlitics by adding hidden fields to capture marketing attribution data.
2. Add hidden fields
Once you’ve added UTM tracking to your inbound links, the next step is to install Madlitics on your site and update your Framer Forms to include hidden fields that will store attribution data when a visitor submits a form automatically. Hidden fields to include:
• Channel (e.g., Paid Search, Organic Social, Direct)
• Segment 1 (Platform name: Google, LinkedIn, Twitter)
• Segment 2 (Campaign name)
• Segment 3 (Ad group, offer name, or post type)
• Segment 4 (Creative type or ad variation)
• Landing page/group (Tracking & first-touch attribution)
CRM interface showing a detailed view of captured attribution data, including marketing channels, segments, and landing pages. A business profile of a lead is displayed, highlighting how Madlitics enriches lead data for sales and marketing teams.
3. Utilize attribution data
With the setup complete, every form submission in Framer now carries full attribution data, ensuring accurate insights into where leads originate. Pass this data to your CRM, analytics tools, or marketing automation platforms to track performance, refine campaigns, and optimize marketing efforts with precision.

Next Steps for Better Attribution

To improve your revenue attribution, start by implementing a few key strategies:

  • Use UTM parameters consistently across all campaigns
  • Capture and store attribution data in your CRM at the point of form submission
  • Configure your attribution model to data-driven attribution, which distributes credit based on each channel's actual contribution rather than arbitrary rules
  • For longer sales cycles, use a system with persistent attribution — standard tools with 30–90 day windows will miss a significant portion of your conversions

Additionally, configure your attribution model to data-driven attribution. This method distributes credit based on each channel’s actual contribution, rather than relying on arbitrary rules. For businesses with longer sales cycles, using systems with persistent attribution is crucial, as GA4’s default window of 30 to 90 days may not be sufficient.

Madlitics offers a 14-day free trial (no credit card required) to help you gain insights into where your best leads come from and which campaigns drive real growth. With a simple code snippet and seamless CRM integration, you’ll have access to detailed reports that can guide smarter marketing investments.

Related articles to get you started with Madlitics

Frequently asked questions

Answers to your top questions about our UTM parameters
Put attribution data to work
Sync, analyze, and automate — turn insights into action.
Automation icon indicating hands-free marketing attribution and data flow.
Sync with your CRM
Pass UTM parameters into Salesforce, HubSpot, or ActiveCampaign so your sales team knows exactly where every lead came from — no more guessing.
Analytics report icon, indicating data insights and reporting.
Built smarter reports
Use Google Sheets, Looker Studio, or Airtable to create data-driven reports that reveal which campaigns drive real revenue — helping you make informed budget decisions.
Impact measurement icon, symbolizing marketing effectiveness.
Track revenue impact
Sync UTM data with Stripe, PayPal, or Chargebee to see which campaigns generate paying customers, not just leads — so you can scale what works.
Personalization icon, representing customization features.
Personalize email campaigns
Trigger personalized email flows in Klaviyo, Mailchimp, or ConvertKit based on a lead’s original source — ensuring the right message reaches the right audience.
Visualizing your marketing impact
See how attribution data translates into actionable insights.
Stacked bar chart showing lead generation by marketing channel over time, comparing sources like Paid Search, Paid Social, Organic Search, Direct, and Email. Helps visualize which channels drive the most traffic.
Leads by channel
See how different marketing channels contribute to lead generation over time. Understand which ones drive the most traffic and whether your marketing mix is balanced. Shift your budget toward the highest-performing channels to maximize results.
Stacked bar chart illustrating lead volume across different marketing campaigns, including Black Friday, Retargeted, Spring Promo, Referral, and SEO. Highlights trends in campaign effectiveness.
Leads by campaign
Track inbound leads across all campaigns, whether or not they have UTM parameters. Ensure every lead is categorized correctly, including Organic and Referral traffic. Use this insight to refine messaging, targeting, and budget allocation for better performance.
Line chart displaying lead-to-customer conversion rates by channel, comparing Google Ads, Facebook Ads, LinkedIn Ads, Organic Search, and Email. Shows how different sources drive qualified leads over time.
Conversion rate by channel
See which channels convert leads into paying customers. Some bring buyers, while others generate unqualified leads. Focus your budget on what drives revenue.
Line chart showing revenue performance by marketing campaign, comparing Google Ads, Facebook Ads, and LinkedIn Ads. Helps identify top-performing and underperforming campaigns.
Revenue by campaign
Focus your budget on campaigns that drive revenue, not just leads. Identify top performers and optimize underperforming efforts to maximize profitability.
Everything you need for reliable lead attribution
Accurate, persistent, and automated tracking — so your campaigns perform at their best.
Performance icon symbolizing marketing campaign effectiveness and results tracking.
Outperforms basic UTM tracking
Madlitics captures, categorizes, and persists attribution data across sessions, giving you a complete, structured view of what’s working in your marketing. Say goodbye to losing attribution when users navigate your site, struggling with formatting inconsistencies, and ingored non-UTM traffic.
Capture icon indicating data collection from various marketing channels and sources.
Capture all traffic
Madlitics categorizes all inbound leads — whether they have UTM parameters or not — so every conversion is accounted for, and you won't miss out on Organic Search, Organic Social, and Referral traffic.
Routing icon representing the flow of marketing data and attribution pathways.
Attribution across pages and sessions
A LinkedIn ad click should be attributed correctly—even if the visitor signs up on a different page later. If someone clicks an ad, browses multiple pages, then submits a form later, Madlitics persists attribution data across sessions, ensuring your reports reflect true performance.
List icon representing structured marketing data, reports, or campaign breakdowns.
Cleaner, more reliable data
Duplicate UTMs and inconsistent formatting break reports and mislead teams. Madlitics cleans and organizes attribution data before sending it to your CRM, giving you accurate insights.
Target icon symbolizing precise audience targeting and marketing campaign focus
See which content converts
Attribution isn’t just about where visitors came from—it’s about what convinced them to convert. By capturing landing page data alongside UTM parameters, Madlitics shows you which blog posts, case studies, or pricing pages drive the most revenue, helping you scale content that works.
Action icon representing campaign execution, optimization, and engagement.
Transform form submissions into actionable insights
Madlitics connects marketing touchpoints to lead generation, ensuring every form submission is fully attributed — optimize ad spend by identifying high-ROI channels, refine messaging based on what content drives engagement, make data-driven decisions with clean, structured reports, and more.