How to capture UTM parameters in Ninja Forms

Keep original campaign details with your Ninja Forms leads, even when they browse before submitting, and use that attribution in your CRM and reports.
Attribution is broken

Madlitics captures UTM parameters, marketing channel and landing page data, then preserves that first-touch attribution as someone browses your website. When they submit your form, the original campaign details appear alongside their answers. For untagged visits, available referrer information helps identify sources such as organic search, social and referrals.

This guide shows you how to add attribution to your Ninja Forms submissions and pass it into your connected tools, so you can compare sources and campaigns with lead quality and customer outcomes.

Set up UTM & attribution tracking in Ninja Forms

Capture original campaign details and keep them with the submission.

1.

Install Madlitics on your WordPress site

Install Madlitics on your WordPress website to capture first-touch attribution when someone arrives and preserve it as they browse. This keeps the original marketing source available when they reach your Ninja Form.

Install Madlitics on WordPress
Install Madlitics
Add UTM parameters
2.

Configure Ninja Forms to receive attribution

Add the seven default Madlitics hidden fields to your Ninja Form. These receive the original channel, four campaign segments, landing page URL and landing page group without adding anything for the lead to complete.

For tagged campaigns, the four segments record the source, campaign, term and content values supplied through your UTMs.

Set up Ninja Forms for UTM parameters
3.

Capture attribution with every submission

When someone submits your Ninja Form, Madlitics writes their stored first-touch attribution into the configured fields. The original campaign details and landing page appear alongside their contact information, even after they browse beyond the page where they arrived.

Receive enriched submission data
Connect to reporting
4.

Report attribution across your stack

Map the captured fields through your existing Ninja Forms integration or automation. This keeps the original marketing source with the lead in your CRM, email platform, spreadsheets or reporting tools.

Compare sources and campaigns with lead qualification, opportunities and customers. Include connected revenue records when evaluating which marketing efforts introduce valuable business.

How Madlitics fixes attribution for Ninja Forms

Madlitics captures first-touch attribution when someone arrives on your website and stores it in a first-party cookie. The original channel, campaign details and landing page data remain available as visitors browse, and closes the gap between reading parameters from the current URL and preserving the source that brought them to the site.

Which UTM parameters are captured in Ninja Forms?

Madlitics organizes tagged campaign data into four standard segment fields and records the value in its corresponding parameter.
UTM parameter
Madlitics field
Example value
utm_source
segment1
google
utm_campaign
segment2
demand_gen_q1
utm_term
segment3
marketing_teams
utm_content
segment4
video_a

The marketing channel is stored in channel and is a classification of utm_medium alongside other available signals. 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.

Use Ninja Forms attribution data in your reports

Use captured attribution alongside CRM outcomes to compare lead volume, conversion rates 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 how many leads first arrived through each marketing channel.

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
Use customer outcomes from your CRM to compare the proportion of leads that become customers.

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
Combine captured campaign values with connected customer and revenue records to compare campaign results.

Related articles

Make Ninja Forms Your Attribution Engine

Madlitics connects the campaign visit with the form submission, preserving original source, campaign and landing page details as leads browse. Once those fields are mapped into your existing tools, you can compare marketing activity with the leads, opportunities and customers it produces. Start a free trial to capture attribution in your Ninja Forms submissions and bring that context into your existing reporting.

Explore the Ninja Forms integration overview for the captured fields and ways to use attribution across your existing tools.

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

Keep original marketing context with your leads, from campaign visit to CRM record.

Capture sources beyond UTMs
Use available referrer information to identify organic search, organic social and referral leads alongside tagged campaigns.

Turn attribution into decisions
Compare captured source and campaign details with qualification, pipeline and customer outcomes in your existing tools.

Spot top channels
Group Ninja Forms leads by their original marketing channel to compare volume and lead quality.

Find campaigns that convert
Keep campaign values with individual leads so you can follow their progress from submission to customer.

Persistent attribution tracking
Preserve original attribution as leads browse or return later in the same browser, while the stored data remains available.
Keep campaign fields consistent
‍Record source, campaign, term and content in defined fields so your connected tools receive a consistent data structure.
Start a Madlitics free trial

Frequently Asked Questions

Answers about capturing campaign parameters and keeping original attribution with your leads.