Set up HighLevel forms to capture UTM parameters and marketing attribution

Add Madlitics attribution fields to your HighLevel forms so submissions include the original marketing channel, campaign details and landing page.
Attribution is broken

Madlitics captures first-touch attribution when someone arrives on your website and preserves it as they browse. With your HighLevel form configured to receive that data, the original channel, campaign details and landing page can be recorded alongside the lead’s contact information.

This guide walks through adding the attribution fields to a new or existing HighLevel form, placing the form on your website and reviewing the captured data in HighLevel.

Before you begin, install Madlitics on the website, where you’ll embed your HighLevel form. This guide covers forms built with HighLevel's Form Builder and embedded on your website.

Create a new form or open an existing one

‍Step 1: In HighLevel, go to Sites → Forms → All forms and open the form you want to use.

To create a new form, click Create form, then choose Start from Scratch or From templates. Click Create to continue to the form builder.

‍

Open an existing HighLevel form or click Create form to start a new one.

‍

Choose how you want to create your form, then click Create.

Configure your HighLevel form attribution fields

‍

Step 2: We’re going to connect the attribution fields to your HighLevel contact records.

Start by opening the Add Object Fields tab in the form elements sidebar. Select Contact from the object dropdown, then click the + button.

In the Create custom field panel‍

  1. Choose Single line as the field type
  2. Select Contact under Add to object.
  3. Set “Channel” as the field name, using the Madlitics fields below as your reference.
  4. Select General Info as the folder where the field will appear on the contact record
  5. When you’re finished, click Create custom field to continue.

‍

Select the Contact object, then click + to create an attribution field.

‍

Create a Single line field named Channel in the General Info folder on the Contact object.

‍

Add the new custom field to your form from the General Info folder in the Object Fields tab and open its settings from the gear icon.

In the field setting panel

  1. Set the Label to “Channel”
  2. Set the Query Key to channel. Query Keys should always be lowercase, with no spaces or underscores.
  3. Turn Hidden on so the field won’t appear to leads filling out your form.
  4. Repeat for all seven fields, using the names and Query Keys below.
  5. When you’ve finished building your form, click Save.

‍

Add the field to your form, add a label, set its Query Key to channel, and turn Hidden on.

‍

Continue with the next field segment1, Hidden on.

‍

Repeat for the remaining Madlitics fields to capture campaign segments and landing page data.

‍

Madlitics fields

Use Single line fields attached to the Contact object. Turn Hidden on for all seven fields, and enter each Query Key exactly as shown: lowercase, with no spaces or underscores.

Field Name

Label

Hidden

Query Key

Captures

Channel

Channel

On

channel

Original marketing channel

Segment 1

Segment 1

On

segment1

Traffic source, including utm_source for tagged campaigns

Segment 2

Segment 2

On

segment2

Campaign name from utm_campaign, when supplied

Segment 3

Segment 3

On

segment3

Keyword or targeting detail from utm_term, when supplied

Segment 4

Segment 4

On

segment4

Ad creative or content variation from utm_content, when supplied

Landing Page

Landing Page

On

lp

URL of the page where the lead first entered your website

Landing Page Group

Landing Page Group

On

lpg

Reporting group for the original landing page

Field Name

Label

Query Key

Channel

Channel

channel

Segment 1

Segment 1

segment1

Segment 2

Segment 2

segment2

Segment 3

Segment 3

segment3

Segment 4

Segment 4

segment4

Landing Page

Landing Page

lp

Landing Page Group

Landing Page Group

lpg

Embed your HighLevel form

Step 3: With your attribution fields configured, save your form and open the Integrate tab. Select Embed and choose your preferred layout, then click Embed code. In the popup, click Copy code, then follow HighLevel’s instructions to embed the form on your website.

‍

Choose an embed layout, then click Embed code.

‍

Copy the embed code, add it to your website and publish the page.

View lead source data in HighLevel

‍Step 4: Open Sites → Forms → Submissions, select your form and review the captured attribution alongside each lead’s contact details. Adjust the visible columns to show Channel, campaign segments and landing page data. Open the corresponding contact under Contacts to see the values stored in the custom fields you created. In this walkthrough, those fields are in General Info.

To send attribution to another tool, include the custom fields in your configured HighLevel integration or outbound workflow webhook, then map them to fields in the destination.

‍

View captured marketing channel and campaign data alongside contact details in Submissions.
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

Connect HighLevel form submissions to the campaigns that drove them

With Madlitics configured, your embedded HighLevel forms can carry the original marketing source into the same records your team uses to manage leads. That gives sales useful campaign context and gives marketing a consistent basis for comparing which sources and landing pages bring in inquiries.

Connect those attribution fields with the associated opportunity stages and deal values in a report that supports both datasets, or in your reporting tool. You can then compare lead volume with qualified opportunities and won business. A campaign that produces fewer submissions may still deserve more budget if those leads are more likely to become customers.

Frequently Asked Questions

Answers about configuring embedded HighLevel forms to capture and use Madlitics attribution data.