Installing Madlitics in Framer

Add a custom code snippet to the <head> of your Framer site
Attribution is broken

Framer is known for its clean visual editor, responsive design tools, and creative flexibility — making it a favorite for designers and marketers who want full control without touching code. For teams that need precise attribution and analytics, Framer also makes it easy to add custom scripts — like Madlitics — directly into your site’s <head> tag.

In this guide, we’ll first cover creating your Madlitics account and grabbing your installation snippet. Then, we’ll walk through how to add that snippet into Framer and publish your changes so attribution runs across every page.

After Madlitics has been installed, next we'll update our forms with Madlitics fields to capture marketing data to and enhance customer submissions.

Register for a Madlitics account

Step 1: Sign up for a free trial on the Madlitics website to get started.

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

‍

‍

Copy Madlitics code snippet

Step 2: 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. Copy your unique code snippet.

Locate your unique installation snippet in the dashboard under Get Started › Step 1 › Copy Code Snippet.

Install Madlitics in Framer

Step 3: Framer, adding your Madlitics snippet only takes a minute.

  • Start by opening your site’s Settings from the dashboard or editor.
  • In the left-hand menu, look for Custom Code — this is where you’ll manage any scripts that run on your site.
  • Click Add Script to create a new custom snippet.
  • Give it a name so you can easily identify it later — something like “Madlitics tracking.”
  • Set the placement to End of <head>, and make sure it’s set to run on All Pages and every page visit.
  • Next, paste your Madlitics code snippet into the code input area. Once you’re happy with it, click Add to save your snippet.

After saving, publish your site to push the changes live. Keep in mind that scripts don’t run in Framer’s preview mode, so you’ll need to check the published version to confirm that tracking is active.

‍

A. Click the ••• menu and choose Open Settings to access your site settings panel.

‍

B. Or, from the editor, click the gear icon (project setting) in the top right to jump directly to settings.

‍

Click Add Script to create a new custom snippet.

‍

Give it a name so you can easily identify it later — something like “Madlitics Tracking”, and update the script options to Placement: End of <head>, and make sure it’s available on All Pages and Runs On every page visit.

‍

Paste your Madlitics code snippet into the code input area and click Add to save your snippet.

Verify the Snippet Is Installed

To confirm everything’s working, open your published site in a browser. Right-click and choose Inspect, or press Cmd + Option + I (Mac) or Ctrl + Shift + I (Windows). In the Elements tab, scroll up to the <head> section and make sure your Madlitics snippet is there.

If you see it in place, you’re good to go!

‍

‍

Next:

Configuring your forms to capture marketing attribution:

Configure Framer 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.
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.

Related articles

Adding custom code to Framer is simple and powerful — giving you the flexibility to track, optimize, and personalize your site experience. With Madlitics installed, your marketing attribution data becomes visible, organized, and actionable.

Whether you're launching campaigns, syncing leads into your CRM, or reporting on ad performance, having the snippet installed ensures you never miss a source or lose track of a conversion. Publish your changes and let Madlitics do the rest.

Next step: Set up Framer forms to begin collecting marketing attribution and capturing UTM parameters.

Frequently Asked Questions

Answers to common questions about Madlitics and Framer