Digital Marketing

Best way to track marketing attribution in Webflow

A Step‑by‑Step Guide to Add Marketing Attribution to Your Webflow Website
Attribution is broken

Marketing attribution on a Webflow site involves tracking which marketing efforts lead to conversions like form submissions or purchases. Since Webflow lacks built-in attribution tools, you’ll need to set up a system manually. Here’s the process in simple steps:

  • Use a Tracking Tool: Tools like Madlitics help collect and organize visitor data across sessions.
  • Add Tracking Scripts: Insert JavaScript snippets into Webflow’s “Custom Code” section (requires a paid plan).
  • Set Up Hidden Fields: Add fields to your forms to store data like traffic source, campaign name, and landing page details.
  • Test Your Setup: Use UTM-tagged URLs to verify data is recorded accurately in form submissions.
  • Sync with Your CRM: Connect attribution data to tools like Salesforce or HubSpot for better lead insights.

This setup ensures you know which marketing channels drive results, even across multiple visits. Tools like Madlitics provide more detailed insights compared to Webflow’s native tracking, helping you make data-driven decisions about your campaigns.

How to Capture UTM & Attribution Data in Webflow

What You Need Before Setting Up Attribution Tracking

Before diving into attribution tracking, make sure you have a few things in place: a paid Webflow plan, an active account with an attribution tracking provider (Madlitics), and a well-defined UTM structure. A paid Webflow Site or Workspace plan is essential because it grants access to the "Custom Code" section, where tracking scripts are installed. Free plans are limited to basic Google Analytics integration, which doesn't provide the detailed data needed for effective attribution.

You'll also need an active account with a tracking provider, like Madlitics, to captures and stores visitor source data until a visitor submits a form. Focus on tracking forms that drive conversions, such as contact forms, demo requests, or quote requests. Skip forms like search bars or login fields, as they don't contribute to marketing attribution.

Lastly, ensure consistencyin applying UTM tags to all campaign links. Without uniform tagging, your attribution reports could end up incomplete or inaccurate. Once these steps are complete, you can move on to configuring Webflow for seamless tracking integration.

How to Access Webflow Project Settings

To set up tracking in Webflow, open your project and click the gear icon in the left sidebar to access the Project Settings. From there, go to the "Custom Code" tab under the "Publishing" section. This is where you'll paste your tracking script in the Head Code field. If this option isn't available, verify that you're on a paid Webflow plan, as free accounts don't support custom code.

Be cautious when adding tracking scripts. For instance, if you're using Google Analytics, insert the code either in the Integrations tab or the Custom Code section - never both. Duplicate tags can skew your data by sending the same information twice, which can lead to inaccurate reporting.

Which Forms to Track

Begin by listing all the forms on your site that collect visitor information. Focus on high-priority forms, such as demo requests and contact forms, rather than lower-intent actions like newsletter signups or footer email captures.

To ensure accurate tracking, assign a unique ID to each form in the Webflow Designer. Select the Form Block, go to Element Settings, and add a descriptive ID like "contact-form" or "demo-request". Once your key forms are identified, you can implement persistent tracking to capture detailed visitor data.

How Persistent Visitor Tracking Works

Understanding how persistent tracking operates is crucial for effective attribution. This type of tracking ensures that attribution data stays linked to a visitor across multiple pages and sessions. For example, if someone clicks a LinkedIn ad, the tracking script captures and stores that source information. Even if the visitor returns later through a direct visit, the original ad source will still get credit when a form is submitted.

Persistent tracking is especially important because most visitors don't convert on their first visit. A typical user might click an ad, explore your site, leave, and return multiple times before submitting a form. Without persistent tracking, you might only see "Direct" as the source, making it hard to assess campaign performance. The tracking script resolves this by using hidden form fields to automatically include the stored attribution data when a form is submitted. This ensures your CRM captures complete and accurate data.

"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." - Madlitics

How to Set Up Marketing Attribution on Webflow

To get started with marketing attribution on Webflow, make sure your plan supports custom code and identify the forms you want to track. Once that’s sorted, you’ll follow three main steps: add the tracking script, set up hidden fields, and verify everything works as expected. Here’s how to put it all together.

Installing the Madlitics Tracking Code

First, log in to your Madlitics account and grab your unique tracking code snippet. This little piece of JavaScript is what collects visitor source data across your website.

Head over to your Webflow Dashboard, go to Project Settings, and then click on the Custom Code tab. Paste the tracking snippet into the Head Code section and hit "Save Changes." It’s important that the script is loaded in the <head> section of your site so it can start capturing visitors right away.

Once you’ve saved the changes, publish your site to its live domain. Keep in mind that the tracking script only works in a live environment - it won’t collect data in Webflow’s preview mode.

Configuring Your Webflow Form Fields

Madlitics stores attribution data within fields that are hidden from your customers. To track everything properly, you’ll need to add seven fields to each form: channel, segment1, segment2, segment3, segment4, lp, and lpg. These fields will capture details like the marketing channel, traffic source, and landing page information.

Here’s how to add them:

  1. Open the Webflow Designer and select the form you want to track.
  2. Use the Form Builder or an Embed element to add a new field for each parameter. This method is similar to how you would capture UTM parameters in custom HTML forms to ensure data consistency.
  3. Set the Field Label/Name to match the Madlitics parameter (e.g., channel).
  4. Assign the Default Value to the bracketed version of the parameter (e.g., [channel]). This tells the script where to insert the captured data during form submission.
  5. Make sure these fields are hidden, and positioned just above the submit button so they remain part of the form structure.

Here’s a quick reference table for the fields you’ll need to add:

Field Name

Default Value

What It Captures

channel

[channel]

Marketing channel (e.g., Paid Search, Organic Social, Direct)

segment1

[segment1]

Traffic source or utm_source (e.g., Google, LinkedIn)

segment2

[segment2]

Campaign name or utm_campaign

segment3

[segment3]

Keyword or utm_term

segment4

[segment4]

Ad content or utm_content

lp

[lp]

Full URL of the initial landing page

lpg

[lpg]

Landing page category (e.g., /blog, /pricing)

Once these fields are set up, you’re ready to test your setup.

Testing Your Forms and Checking Data Accuracy

After your site is live, it’s time to test. Create a test URL with UTM parameters, such as:
yoursite.com?utm_source=test&utm_campaign=verification. Use this link to visit your site, click around a bit to confirm data persistence, and then submit one of your forms.

Next, go to Project Settings > Forms in Webflow to review the form submissions. Look for the hidden fields alongside standard ones like name and email. If the hidden fields are correctly populated with attribution data, you’re good to go. If not, double-check that your field names are spelled and capitalized exactly as required, and ensure the Default Values use the correct bracket format.

This process ensures your forms are capturing the data you need to track your marketing efforts effectively.

Using Attribution Data to Improve Your Marketing

Leverage attribution data to fine-tune how you allocate your budget and shape your content strategy. Instead of focusing on surface-level metrics like clicks or impressions, dig deeper to understand what truly drives conversions and revenue. These strategies build directly on the earlier configuration steps.

Finding Your Best Traffic Sources and Channels

Madlitics organizes your traffic using a structured hierarchy of fields. (For details, refer to the earlier section on setting up hidden fields and how Madlitics categorizes inbound leads.)

"Pass UTM parameters into Salesforce, HubSpot, or ActiveCampaign so your sales team knows exactly where every lead came from - no more guessing." - Madlitics

Use this data to identify channels that might have lower traffic volume but deliver higher-quality leads. Then, reallocate your budget to emphasize these high-performing sources. For channels that underperform, refine your messaging to improve results. Additionally, you can integrate attribution data with payment processors like Stripe or PayPal to calculate the exact ROI for individual campaigns.

Improving Landing Pages with Attribution Data

Landing pages are critical for turning visitors into leads. The lp field captures the full URL of the first landing page a visitor sees, while the lpg field groups pages into categories (e.g., /blog, /pricing). This data helps pinpoint which content generates the most conversions.

"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." - Madlitics

By comparing traffic sources with landing page performance, you can spot mismatches in messaging. For example, if a campaign drives traffic to a page with a high bounce rate, it could mean the landing page content doesn’t meet visitor expectations. Use this insight to tweak your ad copy or personalize landing pages to better align with visitor needs. Once refined, integrate this data with your CRM to close the marketing feedback loop.

Connecting Attribution Data to Your CRM

Integrating Madlitics with your CRM enriches every lead record with detailed marketing insights. Thanks to the persistent tracking set up earlier, the seven hidden fields in your Webflow forms automatically populate in your CRM when a form is submitted. This gives your sales team immediate context about each lead’s origin and engagement history.

Map Madlitics fields to corresponding CRM fields (e.g., Salesforce, HubSpot, ActiveCampaign) to track which campaigns lead to closed-won deals - not just form submissions. This integration allows you to calculate true ROI by comparing campaign spending against the revenue generated by attributed leads. You can also use this data to trigger personalized email sequences in platforms like Klaviyo or Mailchimp, tailoring your nurturing efforts to each lead’s entry point.

The four segment fields capture granular details, such as specific ad creatives or keywords, helping your sales team customize their outreach. For instance, if your CRM shows a lead originated from a particular case study or pricing page, your team can reference that content in their initial conversation. This approach accelerates deal progression and boosts overall marketing performance on Webflow.

Madlitics vs. Webflow's Built-In Tracking

Webflow Analyze provides session-based, aggregate metrics like clickmaps, scroll depth, and top referrers. It operates with a 30-minute session timeout and retains data for up to 90 days. While this is helpful for observing on-page behavior, it falls short in connecting traffic sources to individual leads or revenue.

Madlitics addresses these gaps with a more targeted approach. It emphasizes lead-level attribution by linking marketing touchpoints directly to form submissions and CRM records, ensuring that the first interaction gets the credit when a conversion happens.

"If someone bounces off your site, comes back later via organic search, then converts - most native tools only grab whatever's in the URL at submission time. No session history, no multi-page persistence." - Madlitics

Another standout feature is data normalization. Webflow's forms log UTM parameters exactly as entered, which can lead to fragmented data. Madlitics, on the other hand, automatically organizes and categorizes traffic data. For instance, it consolidates entries like "Facebook", "facebook", and "FB" into one unified category. It also identifies and categorizes all traffic sources - including organic search, organic social, AI referrals, and direct traffic - even when UTM parameters are absent.

Feature Comparison Table

Feature

Madlitics

Webflow Native Tracking

Primary Focus

Lead attribution and revenue tracking

Site engagement and traffic behavior

Data Level

Individual lead-level data

Anonymous, aggregate data

Data Persistence

Multi-session/cross-page (365-day cookie)

Session-based (30-min timeout)

Data Normalization

Automatic (cleans "FB" vs "Facebook")

None (manual entry only)

Channel Categorization

Automatic (Paid, Organic, Referral, AI)

None

Non-UTM Traffic

Records organic, direct, and referral traffic

Often ignored or logged as "Direct"

CRM Integration

Direct sync with Salesforce, HubSpot, etc.

No native lead-to-CRM mapping

Setup Complexity

Easy

Native; no setup

Visual Tools

Channel and campaign performance reports

Clickmaps and scroll depth

Historical Data

Full lead history

Maximum 90 days

This side-by-side comparison highlights how a dedicated lead attribution tool like Madlitics can provide deeper marketing insights for your Webflow site, going beyond basic engagement metrics.

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.

Conclusion

Tracking marketing attribution on Webflow doesn’t have to be a headache. With Madlitics, you can skip the hassle of custom JavaScript, data loss between pages, or cleaning up UTM parameters. It takes care of all the technical details for you - keeping attribution data intact across sessions, categorizing all traffic (even visitors without UTM tags), and automatically organizing the data before it reaches your CRM.

Getting started is quick and simple. In just 5–15 minutes, you can install one tracking code, add seven hidden fields, and test a sample submission to ensure everything works smoothly. Once set up, every form submission will send complete attribution data directly to your CRM, giving your sales team the insights they need to understand each lead’s journey.

"Madlitics captures, categorizes, and persists attribution data across sessions, giving you a complete, structured view of what's working in your marketing."

This process fits right into your marketing workflow without disrupting it. Unlike Webflow’s built-in analytics, which focuses on overall session behavior, Madlitics connects individual leads to revenue. You can sync this data with tools like Salesforce, HubSpot, or ActiveCampaign, and even link it to payment platforms like Stripe or PayPal to track which campaigns drive revenue.

Want to see where your best leads come from without the mess of manual cleanup or lost data? Madlitics offers a 14-day free trial - no credit card needed. Just install the code, configure your forms, and start making confident, data-driven decisions across your marketing efforts.

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.