Set up ActiveCampaign to capture UTM parameters and marketing attribution


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.
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.
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.





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.
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.




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.

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.


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.
Answers about configuring ActiveCampaign forms for Madlitics