Support

Installing Madlitics on Webflow

How to add custom code to your Webflow site’s <head> using Madlitics
Start capturing attribution →
Attribution is broken
Automation icon indicating hands-free marketing attribution and data flow.
Analytics report icon, indicating data insights and reporting.
Impact measurement icon, symbolizing marketing effectiveness.
Personalization icon, representing customization features.

Webflow is a modern website builder loved by designers, marketers, and small businesses for its clean design system and visual development interface. With Webflow, you can launch fully custom websites without ever writing code — but when you do need to add custom scripts, like analytics or attribution, it offers simple tools to do just that.

In this guide, we’ll walk through two parts: first, creating your Madlitics account and grabbing your installation snippet, and then adding that snippet into Webflow’s Custom Code settings. Once installed and published, this snippet will load across all pages of your site, allowing you to capture clean, accurate attribution data from every visitor.

Prerequisite: Before you can install Madlitics, you’ll need to create a Madlitics account. Registration unlocks your dashboard, and copy the code snippet that powers attribution. This step only takes a minute and ensures you have everything ready before moving on to the platform-specific setup.

Step 1: Create your Madlitics account
Sign up for a free trial on the Madlitics website to get started. Creating an account unlocks your dashboard, where you’ll manage your sites, view analytics, and access the code snippet you’ll need to install.

Start by signing up for a FREE Madlitics trial to begin capturing attribution data.

Fill out the registration form to create your account and unlock your dashboard

Step 2: Access your installation snippet
Once you’ve registered and logged in, you’ll land in your dashboard’s Get Started section. Here, you’ll find your unique Madlitics installation snippet, which is required to enable tracking on your site.

Locate your unique installation snippet in the dashboard under Get Started › Step 1 › Copy Code Snippet.
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.
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.
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.
Graph showing new customer growth from TikTok, Instagram, Snapchat, and Google over time, with social media icons surrounding the chart and a callout for social revenue impact.

Adding custom code to Webflow

With your Madlitics snippet copied, the final step is adding it into Webflow so it loads across your entire site. Webflow makes this simple with its built-in Custom Code settings. By pasting the snippet into your project’s <head> section, you’ll ensure attribution runs on every page once the site is published.

Step 3: Add the Madlitics code snippet in Webflow
Now that you’ve got your code, open Webflow and head into Site Settings for the project you want to update.

From the Dashboard, locate the website you want to update.
a) You can either click the three dots (•••) and select Settings from the dropdown menu, or
b) Hover over the site card and click the gear icon in the upper-right corner labeled Site settings.
c) Alternatively, if you’re already in the Designer, click the menu icon (☰) in the top-left corner and select Site Settings to jump back to your site controls.

Once inside the Site Settings, use the sidebar to click Custom Code. Scroll to the Head Code section. Paste your Madlitics snippet into this field—this ensures the code loads in the <head> tag on every page. Click Save in the upper-right corner when you’re done.

Finally, hit Publish to push your updates live. This step is important—it pushes your code updates live across the site. Any changes made in Site Settings (like adding scripts) won’t take effect until the site is republished.

⚠️ Note: Scripts will not run in preview mode. Make sure to check the published version of your site when verifying your setup.

Locate your Webflow site from the dashboard.

A. Click the ••• icon and select Settings to open site-level controls.

B. Click the gear icon that appears when hovering over the site thumbnail.

C. If you're already inside the Designer, use the top-left menu to return to Site Settings.

In the Site Settings menu, select Custom Code from the sidebar to find the Head Code input field.

Verifying the Snippet is Installed
To confirm that the Madlitics snippet is working, open your live site in a browser and inspect the page source. Right-click anywhere on the site, select Inspect, and switch to the Elements tab. Look inside the <head> tag for your script. If you see the snippet there, you're good to go.

Next: Configuring your forms to capture marketing attribution:

• Configure Webflow forms

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.
Stacked bar chart illustrating lead volume across different marketing campaigns, including Black Friday, Retargeted, Spring Promo, Referral, and SEO. Highlights trends in campaign effectiveness.
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.
Line chart showing revenue performance by marketing campaign, comparing Google Ads, Facebook Ads, and LinkedIn Ads. Helps identify top-performing and underperforming campaigns.

Webflow gives you the freedom to design and launch fully custom websites without writing code—while still keeping the flexibility to add the scripts that power your business. Adding the Madlitics snippet to your site’s <head> ensures every visitor interaction is captured as clean, first-party attribution data. That means you’ll know exactly which channels are driving leads and revenue, with insights flowing directly into your CRM and marketing tools.

If you’d like a hand getting started, our team’s here to help. We’ll walk you through the setup so you can focus on building, while Madlitics takes care of the attribution.

Related articles to get you started with Madlitics

Frequently asked questions

Answers to your top questions about our UTM parameters
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.