Support

Setting up Gravity Forms for Marketing Attribution and UTM Tracking

Step-by-step setup to add Madlitics fields to Gravity Forms so every response includes channel, campaign, and landing page attribution.
Attribution is broken

Gravity Forms is a powerful and widely trusted WordPress form builder used by marketers and growth teams to capture high-quality leads and conversions. Known for its flexibility and advanced capabilities, it’s an ideal solution for businesses that rely on data-driven decisions. With its easy-to-use form editor, you can quickly create conversion-focused forms that integrate seamlessly with Madlitics. By adding Madlitics fields, every submission is enriched with valuable attribution data such as channel, campaign, and landing page, so you can clearly see which marketing efforts are generating real results.

In this guide, we’ll show you how to install Madlitics, set up Gravity Forms, and configure your forms to capture and submit attribution data, including UTM parameters, alongside your lead and customer information.

💆 Heads-up: Make sure Madlitics is installed on the site where this Gravity Forms form lives (ie. Wordpress). The form alone won’t capture attribution data — Madlitics needs to be running on the page to pass lead data into your submissions.

Installing Madlitics on Wordpress -> 

1. Install and activate the Gravity Forms plugin

Gravity Forms is a commercial WordPress form builder plugin that you must purchase from the Gravity Forms website ↗. After buying a license, you download the plugin as a ZIP file and manually upload it to your WordPress site. Select 'Plugins' from the sidebar menu and either click the 'Add Plugin' button from the page or select the 'Add plugin' dropdown menu item. Click the 'Upload Plugin' button, choose the Gravity Forms download zip, and click 'Install Now'.

Once installed the plugin must be activated by clicking the 'Activate' button. Once activated, you'll be redirected to the Plugins page, to register your Gravity Forms license key.

Plugins > Add Plugin > Upload plugin > Activate

Plugins > Add Plugin > Upload plugin.
Select the Gravity Forms plugin to upload and 'Install Now'

Click 'Activate Plugin' to enable Gravity Forms

Register your Gravity Forms license key and continue to the next step

2. Create a form to capture attribution data

Navigate to the (Gravity) Forms menu item in the Wordpress sidebar. To create a new form click the 'Add New' button or select 'New Form' from the (Gravity) Forms submenu. Select the form template to use, and fill out the requested form details to get started.

Working with a previously created form? Select an already created form, then click 'Edit' to open the form editor.

Click on the 'Add New' button from the Forms page, or select the'New Form' submenu item

Select the form template

Add a couple details to begin using the template

3. Add Madlitics' Fields

Build your form however you like—whether that’s a simple contact form or something more advanced. To make sure attribution data comes through with every submission, you’ll need to drop in seven (7) fields powered by Madlitics. These fields work behind the scenes, automatically pulling in details like channel, campaign, and landing page without adding anything extra for your visitors to fill out.

From the form editor, drag a Hidden Field into your form. Select the field to view the Field Settings panel. Within Field Settings > General, update the label channel . Within Field Settings > Advanced update the Default Value [channel].

Repeat this process for the remaining six (6) Madlitics fields. Once you’ve got all seven Madlitics fields configured, save your form — you’re ready to start capturing rich attribution data alongside your lead details. Configure additional Madlitics field value pairs for deeper customization and richer insights.

Marketing Channel
Categorizes the visit’s marketing channel based on multiple signals, including traffic type, referring domain, and known platforms.
Field label: channel
Default value: [channel]

Segment 1
Captures the source of the traffic, identifying the specific platform, publisher, or partner that sent the visitor to your site; for paid traffic, this field records the utm_source, for organic traffic the platform, for referrals the referring domain, and for direct traffic no value is captured.
Field label: segment1
Default value: [segment1]

Segment 2
 
Captures the campaign-level details associated with the visit, identifying which campaign, promotion, or initiative led the visitor to your site; for paid traffic, this field records the utm_campaign, for organic traffic the referring domain, and for direct traffic no value is captured.
Field label: segment2
Default value: [segment2]

Segment 3
Captures the keyword, creative variation, or content-level detail that influenced the visit, such as a paid search term, specific ad, post type, or format; for paid traffic, this field records the utm_term, for organic traffic the full referring URL when available, and for direct traffic no value is captured.
Field label: segment3
Default value: [segment3]

Segment 4
Captures the audience, ad group, or offer associated with the visit, showing how the traffic was segmented within a campaign; for paid traffic, this field records the utm_content, and for organic and direct traffic no value is captured.
Field label: segment4
Default value: [segment4]

Landing Page
Captures the exact page where the visitor first entered your site, recording the original entry point of the session.
Field label: lp
Default value: [lp]

Landing Page Group
Captures the category or logical grouping of the landing page, allowing multiple related entry points to be analyzed under a shared identifier.
Field label: lpg
Default value: [lpg]

Create forms that fit your process, with any fields you choose.
Place a hidden field in your form to store attribution data from Madlitics.

Set the 'Field Label' to the first Madlitics Field, 'channel'

Set the 'Default Value' to the first Madlitics Field: [channel]

Repeat this process for the 6 remaining Madlitics fields, and save the form to begin collecting customer lead data.

4. Add the form to a page (or post)

Select the page (or post) you want to begin capturing marketing data on, with the newly created form. In the page editor, select 'Add Block', search for Gravity Forms and click the Gravity Forms block component. Select the the name of the form, that includes the hidden fields, from the Select Form dropdown to embed it on the page.

Repeat these full instructions, on any number of pages, posts and forms across your site to capture marketing attribution data — any way you need.

Add block > Search 'Gravity Forms' > Select Gravity Forms > Select form

Select 'Add Block' > Search for 'Gravity Forms' > Select the'Gravity Forms' block.

Select the gravity form from the dropdown.

Don't forget to Save; and Publish

5. Test and publish

Run a test by submitting the form yourself. The captured attribution data will appear in your Gravity Forms Entries dashboard, showing details like channel, campaign, and landing page. Once confirmed, this data will seamlessly pass into your connected tools — like your CRM or analytics platform — giving you full visibility for reporting and optimization.

Captured attribution data will display within Gravity Forms.
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.

With Madlitics now activated and your forms ready to accept marketing attribution data, you can start tracking valuable insights immediately, and pass attribution data into your CRM, email marketing platform, business intelligence tool or more for advanced reporting.

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.