Set up ActiveCampaign to capture UTM parameters and marketing attribution

Configure hidden attribution fields in your ActiveCampaign form and view original marketing context on contact records.
Attribution is broken

Madlitics brings original channel, campaign, and landing page data into your ActiveCampaign contact fields through configured form submissions. That context stays alongside contact details, ready to use in segments, automations, and reporting.

This guide walks through creating the seven standard attribution fields, adding them to an inline ActiveCampaign form, and embedding the form on your website.
‍

Step-by-step video walkthrough

‍

Note: Install Madlitics across the website where visitors arrive and your form is embedded. This walkthrough uses an inline ActiveCampaign form with hidden contact fields.

Create attribution fields in ActiveCampaign

‍

Step 1: Open Contacts → Fields in ActiveCampaign and select the Contacts tab.

Click Add Field and enter the Field Name based on the Madlitics fields reference below. Set each field’s type to Hidden Field so it can collect attribution without adding visible questions to your form.

Repeat this process for each of the Madlitics attribution fields.

Once the fields are created, click on the pencil icon (edit) to open the field customization settings, and update the Default Value so it matches the Madlitics field value. Once the fields are created, they are available to add to your inline form.

‍

In your ActiveCampaign dashboard, open the Contacts section and navigate to Fields.

‍

Click Add Field to create a new field. Enter the field name based on the Madlitics attribution fields listed below, and set the Field Type to Hidden Field.

‍

Once the field is created, click on the pencil icon (edit) to open the field customization settings.

‍

Here you’ll update the Default Value so it matches the Madlitics field value.

‍

Repeat this process for each of the Madlitics attribution fields so your ActiveCampaign account is ready to capture attribution data

‍

‍

Default Madlitics attribution fields

These seven fields capture available original marketing context alongside submitted contact details. Use the field names and Madlitics placeholders below when configuring your form.

Additional fields record the landing page where the visitor first entered your site. Extended Madlitics fields.
‍

Marketing Channel
The original marketing channel, such as Paid Search, Organic Search, Paid Social, or Referral.
Field name: Channel
Type: Hidden Field
Default value: [channel]  

Segment 1
Source detail. For tagged campaigns, this captures utm_source.
Field name: Segment1
Type: Hidden Field
Default value: [segment1]

Segment 2
Campaign detail. For tagged campaigns, this captures utm_campaign.
Field name: Segment2
Default value: [segment2]

Segment 3

The value supplied through utm_term, such as a tagged keyword, ad group, or audience label.
Field name: Segment3
Type: Hidden Field
Default value: [segment3]

Segment 4
The value supplied through utm_content, such as a creative variation.
Field name: Segment4
Type: Hidden Field
Default value: [segment4]

Landing Page
The visitor’s original landing page URL.
Field name: lp
Type: Hidden Field
Default value: [lp]

Landing Page Group
The original landing page group, based on the first URL path segment.
Field name: lpg
Type: Hidden Field
Default value: [lpg]

Campaign segments reflect the values supplied through your tracking parameters. Madlitics does not retrieve campaign, ad group, or creative names from your advertising accounts.

Create an ActiveCampaign form to capture  attribution

Step 2: Go to Website → Forms and create a new inline form or open an existing one.

Build your form and add any fields you need, such as name, email, and company. In the form builder’s Custom Fields panel, locate your custom attribution fields and drag all seven into the form. The attribution fields remain hidden from visitors while allowing their captured marketing context to be submitted with their contact details.

Save your changes, then select Integrate to open the publishing options.
‍

Create a new form or choose an existing one.

‍

Configure the form settings

‍

Drag the custom attribution fields into your form

‍

Once your form has all the attribution fields click Integrate in the top-right corner to proceed to the embed options.

Embed the form to collect attribution

Step 3: Select Integrate and copy the embed code for your configured inline form.

Add the code to the website page where you want the form to appear. Confirm that Madlitics runs on this page and on the pages visitors may land on before reaching it.

Publish the page and check that the intended form appears with its visible contact fields.
‍

Choose your integration method and copy the embed code

View attribution on the contact record

When a visitor submits your configured form, the available original channel, campaign segments, and landing page data are submitted alongside their contact information.

Open Contacts in ActiveCampaign and select the contact associated with the submission. View the Madlitics fields alongside their name, email, company, and other collected details. Use these contact fields in supported segments, automation conditions, and reports.

To verify the setup, open a tagged website URL in a fresh browser session and submit the form using a test email address. Check that the contact fields contain the expected campaign values and original landing page, rather than the square-bracketed placeholders.

‍

Form submissions now include marketing attribution data
‍
View attribution data inside the contact record
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 installed and your ActiveCampaign form configured, contact records can include available original channel, campaign, and landing page data alongside submitted details. Use those fields to build useful segments, give automations marketing context, and connect original sources with customer outcomes.

Frequently asked questions

Answers about configuring ActiveCampaign forms for Madlitics