Set up WPForms to capture UTM parameters and marketing attribution

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

WPForms is a popular WordPress form builder that makes it easy to create everything from simple contact forms to more advanced lead capture and registration flows. With its drag-and-drop interface, you can build and publish forms quickly, customize fields to match your process, and connect submissions directly to the tools your team already uses.

By pairing WPForms with Madlitics, every submission is automatically enriched with marketing context — including the channel, campaign, and landing page that brought the visitor to your site. That means you get clear visibility into where each lead came from, without adding friction for your users or relying on perfect UTM tagging.

In this guide, we’ll walk through creating or editing a form in WPForms, adding the required Madlitics fields, and publishing your form so you can start capturing clean, first-party marketing data right away.

‍

Step-by-step video walkthrough

‍

💆 Prerequisite(s):
  • ‍Make sure Madlitics is installed on the site where this WPForms form lives (ie. Wordpress).
  • ‍You’ll need an active WPForms license to access hidden fields, under the 'Fancy Fields' section.

Install WPForms plugin

Step 1: WPForms is a commercial WordPress form builder plugin that you must purchase from the WPForms website ↗. After buying a license, 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 WPForms 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 WPForms license key.

Plugins > Add Plugin > Upload plugin > Activate

Go to Plugins › Add Plugin › Upload Plugin
Upload the WPForms .zip from your customer dashboard’s Downloads section

‍

Click 'Activate' to enable WPForms

‍

Register your WPForms license key

Create a new or use and existing form to capture attribution data

Step 2: Navigate to the WPForms menu item in the Wordpress sidebar. To create a new form click the 'Add New' button or select 'New Form' from the WPForms 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 All Forms page, or select the 'Add New Form' submenu item.

‍

Name the form, and select a starting template.

Add Madlitics fields

Step 3: 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.

  • Place a hidden field in your form to store attribution data from Madlitics (located within the 'Fancy Fields' grouping).
  • Select the field to access the Field Options.
  • Within Field Options > General define the Field Label as channel.
  • Within Field Options > Advanced define the Default Value as [channel].
  • Repeat this process for the remaining six (6) Default Madlitics fields (listed below).

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.

‍

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

‍

Field Options > General.
Set the field Label to 'channel'

‍

Field Options > Advanced.
Set the 'Default Value' to [channel].

‍

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

‍

Default Madlitics fields and values

Marketing Channel Category
‍
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]

Configure additional Madlitics field value pairs for deeper customization and richer insights.

Embed lead form

Step 4: 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 WPForms and click the WPForms 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 'WPForms' > Select WPForms > Select form

Select 'Add Block' > Search for 'WPForms' > Select WPForms' block

‍

Select the name of the newly created form and Publish to activate.

‍

‍

Publish and test submission data

Test your form by visiting your site, using a url with unique utm parameters. Captured attribution data will populate in your WPForms submission page which can then be passed to CRMs, Intelligence tools, etc. for advanced reporting.

‍

To view your customer attribution data, navigate to the 'Entries' submenu item and select the form to see the submission details.
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

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, for advanced reporting.

Frequently asked questions

Answers to common questions about setting up tracking with Madlitics and WPForms