How to capture UTM Parameters in Gravity Forms

Keep original campaign data attached to your Gravity Forms leads, from the first visit through submission and into your CRM.
Attribution is broken

A visitor clicks a campaign link, explores your website, and submits a Gravity Form on another page. By then, the UTM parameters from their original visit may no longer be in the URL. Gravity Forms can populate configured fields from URL parameters, but preserving campaign data across pages and return visits requires an additional tracking setup.

Madlitics captures the original UTMs when the visitor arrives, preserves them in their browser, and populates your configured Gravity Forms fields when they submit. Source, campaign, and other tagged details stay alongside the lead, ready to send into your CRM and reporting tools.

This guide explains which parameters to use, how they map to Madlitics fields, and how the captured data becomes available in Gravity Forms.

How to capture UTM parameters in Gravity Forms

Tag your campaign links, configure Madlitics and Gravity Forms, and receive original campaign details alongside your leads.

1.

Add UTM parameters to your campaign links

Add UTM parameters to links in your paid ads, email campaigns, and social promotions. Use consistent values to identify the source, campaign, and additional details you want to compare in your reports.

https://example.com/demo?utm_source=google&utm_medium=cpc&utm_campaign=demo_requests&utm_term=marketing_teams&utm_content=video_a

Here, google identifies the source, demo_requests identifies the campaign, and the term and content parameters record your chosen ad group and creative variation.

Build your campaign URLs
Install Madlitics
Add UTM parameters
2.

Install Madlitics on WordPress

Add the Madlitics script across your WordPress website so it can capture attribution when visitors first arrive. It preserves the original campaign details as they browse and return, keeping those values available when they eventually submit a form.

Install it on both your landing pages and the pages containing your Gravity Forms.

Install Madlitics on WordPress
3.

Configure Gravity Forms attribution fields

Add the default Madlitics hidden fields to your new or existing Gravity Form. These receive the marketing channel, source, campaign segments, original landing page, and landing page group without adding questions for visitors to complete.

Configure additional fields if you also want to include supported click IDs or other attribution values.

Set up Gravity Forms for UTM tracking
Receive enriched submission data
Connect to reporting
4.

Receive campaign data in Gravity Forms and your CRM

When a visitor submits, Madlitics populates the configured fields with their saved attribution. Open Forms → Entries to see the original campaign details alongside their contact information, even when they submit on a different page from where they first arrived.

Use your Gravity Forms integration, webhook, or automation workflow to map those fields into your CRM. New submissions can then carry their original source, campaign, and landing page into your sales and reporting tools.

Which UTM parameters are captured in Gravity Forms?

Madlitics organizes tagged campaign data into the following default fields. Each segment records the value supplied in its corresponding parameter.
UTM parameter
Madlitics field
Example value
utm_source
segment1
google
utm_campaign
segment2
demo_requests
utm_term
segment3
marketing_teams
utm_content
segment4
video_a

The utm_medium value helps Madlitics classify the marketing channel alongside other available signals. The channel is stored in channel; it is a classification rather than a copy of the raw medium value.  

The lp and lpg fields capture the original landing page and its group separately from the campaign parameters.  What you record in utm_term and utm_content depends on your tagging plan. For example, you can use them for an ad group and creative variation. Those details must be supplied through your tags; they aren’t inferred from the parameter names.

Use Gravity Forms UTM data in your reports

Connect original campaign data to your CRM records to compare which sources, campaigns, and landing pages bring qualified leads, customers, and revenue.

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
Compare lead generation across Paid Search, Paid Social, Organic Search, Email, Referral, and Direct traffic to see how each channel contributes to pipeline and revenue to prioritize the top performers.

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
Measure which traffic sources convert leads into customers most effectively using the channel data captured in Gravity Forms submissions.

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
‍
Connect Gravity Forms attribution data to customers and revenue to see which campaigns are driving real business impact to optimize budget, scale campaigns, and more.

Related articles

Start capturing campaign data in Gravity Forms

Configure your fields once, then receive original campaign details alongside new submissions and pass them into your connected tools.

Follow the Gravity Forms setup guide for configuration instructions. For more on original source capture and untagged traffic, explore Gravity Forms marketing attribution.

Why use Madlitics with Gravity Forms to capture UTM and attribution data

See which marketing channels, campaigns, and content actually drive your customers, pipeline and revenue.

Comprehensive channel coverage
Automatically classify leads into 18+ acquisition channels, including Display, Email, Organic, Paid, AI, and more.

Turn attribution into decisions
‍
Move beyond “Direct/Unknown” sources. Capture accurate attribution data to understand what's driving conversions, pipeline, and revenue.

Spot top channels
‍
Break down leads by channel such as Organic, Paid Search, Paid Social, and referrals. Identify what is working and shift budget toward top performers.

Find campaigns that convert
‍
Track performance by campaign, source, medium, and landing page. See which efforts generate qualified leads and customers, not just form fills.

Persistent attribution tracking
‍
Keep UTM and session data attached to each lead, even if they return later or convert on a different page.

Structured UTM data
Standardize inconsistent UTM tags and campaign data into a unified structure across campaigns, sources, and tools.
Start a Madlitics free trial

Frequently Asked Questions

Answers to common questions about UTM tracking with Madlitics and Gravity Forms