Support

Setting up Marketo Forms for Marketing Attribution and UTM Tracking

Step-by-step setup to add Madlitics to Marketo forms so every response includes marketing channel, campaign, and landing page attribution.
Start capturing attribution →
Attribution is broken
Automation icon indicating hands-free marketing attribution and data flow.
Analytics report icon, indicating data insights and reporting.
Impact measurement icon, symbolizing marketing effectiveness.
Personalization icon, representing customization features.

Marketo forms are a core part of many demand generation programs, giving marketing teams control over lead capture, progressive profiling, and data routing. With Madlitics, you can extend those forms to capture attribution data automatically, so every submission carries the context behind how that lead arrived.

In this guide, I'll walk through how to connect Madlitics with Marketo forms. Once set up, every submission can include attribution data across paid/organic channels, campaign segmentations, and landing page data, giving you clearer visibility into what’s influencing lead generation inside Marketo.

💆 Heads-up: Make sure Madlitics is installed site-wide first, either through a script tag or tag manager. Marketo forms need the Madlitics script running on the page to populate attribution data into hidden fields.  Installing Madlitics on your Website->  

1. Create Marketo database fields

To capture attribution with Marketo, we first need to set up the fields that will hold that data. Marketo can only store values in fields that already exist, so you need to create them ahead of time.

Go to the Admin area and click Field Management in the left‑hand menu. This is where you define the fields your forms and integrations can write into. Click New Custom Field, set the Object to 'Lead', Type to 'String', and add the unique Madlitics name for each field.

Field 1: 
Object: Lead
Type: String
Name: Channel
API Name: channel

Repeat this process for all 7 Madlitics fields so, your Marketo forms can begin pushing attribution data into them.

Admin → Field Management → New Custom Field

In the dialog that appears, enter the following:

Object: Lead | Type: String | Name: Channel | API Name: channel

Marketo New Custom Fields, Madlitics Values

All custom fields use Object: Lead and Type: String.

Field 1: 
Name: Channel
API Name: channel

Field 2: 
Name: Segment 1
API Name: segment1

Field 3: 
Name: Segment 2
API Name: segment2

Field 4: 
Name: Segment 3
API Name: segment3

Field 5: 
Name: Segment 4
API Name: segment4

Field 6: 
Name: Landing Page
API Name: landingpage

Field 7: 
Name: Landing Page Group
API Name: landingpagegroup

2. Add database fields to your Marketo form

With your database fields created, the next step is adding them to your form so Marketo can capture attribution data on submission.

Go to Marketing Activities, locate the form you want to update, and click Edit Form. If you don’t have a form yet, create a new one by selecting New → New Local Asset → Form.

Inside the Form Editor, build your form as you normally would by adding standard fields like Name and Email. These fields will capture lead details, while your Madlitics fields will capture attribution data.

To add attribution fields, click the “+” button to insert a new field. In the field list, select Channel, which is one of the database fields you created earlier. This connects the form directly to the Marketo Lead record.

Repeat this process for each Madlitics field, including Segment(s) 1-4, Landing Page, and Landing Page Group. Each field should be added to the form so Marketo has a place to store the incoming data.

Use an existing Marketo form via 'Marketing Activities', and click 'Edit Form'

... or create a new one by selecting New → New Local Asset → Form

Click the “+” button to insert a new field

Select Channel, from the database fields you created earlier

Repeat this process for each Madlitics field
Madlitics multi-channel attribution visualization, showing marketing platforms like TikTok, Instagram, Google, and Facebook. The graphic highlights how different sources contribute to high-performing marketing channels.
Screenshot of a form builder interface with a highlighted 'Hidden Input' field. Accompanied by text explaining how to install and set up Madlitics by adding hidden fields to capture marketing attribution data.
CRM interface showing a detailed view of captured attribution data, including marketing channels, segments, and landing pages. A business profile of a lead is displayed, highlighting how Madlitics enriches lead data for sales and marketing teams.
Graph showing new customer growth from TikTok, Instagram, Snapchat, and Google over time, with social media icons surrounding the chart and a callout for social revenue impact.

3. Configure field properties

Now that your fields are added to the form, you need to configure them so they capture attribution data without being visible to visitors.

In the Form Editor, click on one of the fields you added, such as Channel. In the right-hand panel, update the Field Type to Hidden.

Repeat this for each of the Madlitics fields, including Segment(s) 1-4, Landing Page, and Landing Page Group.

Hidden fields are not shown to the person filling out the form, but they still capture and store data when the form is submitted.

Click on one of the fields in the form editor, top open the field properties

Set the Field Type to Hidden

Repeat this process until all 7 Madlitics fields

4. Configure field values

Now you’ll set up each Madlitics field so it can automatically receive attribution data when the form is submitted. In the Marketo Form Editor, select one of your fields, such as Channel, to open the Properties panel.

Next to Autofill, click 'Edit' to open the Autofill settings. In the modal, set Get Value From to 'Use Default Value', then enter the matching Madlitics token in the Default Value field: [channel]

Click Save to apply the change.

Repeat this process for each Madlitics field, using the corresponding default values:

  • Channel → [channel]
  • Segment 1 → [segment1]
  • Segment 2 → [segment2]
  • Segment 3 → [segment3]
  • Segment 4 → [segment4]
  • Landing Page → [lp]
  • Landing Page Group → [lpg]

Next to Autofill, click 'Edit' to open the Autofill settings

Set Get Value From to 'Use Default Value', then enter the matching Madlitics token in the Default Value field: (ex. [channel])

Click Save to apply the changes

Repeat this process for each Madlitics field, using the corresponding default values

Complete Madlitics field values used with Marketo

For additional fields and values including clickIDs (gclid/fbclid) or extra parameters, see Madlitics field values pairs.

Marketing Channel Category (Field 1)
Categorizes the visit’s marketing channel based on multiple signals, including traffic type, referring domain, and known platforms.
Object: Lead
Type: String
Name: Channel
API Name: channel
Field Type: Hidden
Get Value From: Use Default Value
Default value: [channel]


Segment 1 (Field 2)

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.
Object: Lead
Type: String
Name: Segment 1
API Name: segment1
Field Type: Hidden
Get Value From: Use Default Value
Default value: [segment1]

Segment 2 (Field 3)

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.
Object: Lead
Type: String
Name: Segment 2
API Name: segment2
Field Type: Hidden
Get Value From: Use Default Value
Default value: [segment2]

Segment 3 (Field 4)
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.
Object: Lead
Type: String
Name: Segment 3
API Name: segment3
Field Type: Hidden
Get Value From: Use Default Value
Default value: [segment3]

Segment 4 (Field 5)
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.
Object: Lead
Type: String
Name: Segment 4
API Name: segment4
Field Type: Hidden
Get Value From: Use Default Value
Default value: [segment4]

Landing Page (Field 6)
Captures the exact page where the visitor first entered your site, recording the original entry point of the session.
Object: Lead
Type: String
Name: Landing Page
API Name: landingpage
Field Type: Hidden
Get Value From: Use Default Value
Default value: [lp]

Landing Page Group (Field 7)
Captures the category or logical grouping of the landing page, allowing multiple related entry points to be analyzed under a shared identifier.
Object: Lead
Type: String
Name: Landing Page Group
API Name: landingpagegroup
Field Type: Hidden
Get Value From: Use Default Value
Default value: [lpg]

5. Embed your Marketo form

With your form configured and approved, the final step is embedding it on your website so visitors can submit it and attribution data starts flowing into Marketo.

For new forms
In Marketing Activities, select your form, then click Form Actions → Embed Code.
Copy the provided embed code, then paste it into your website where you want the form to appear. You can add this directly into your CMS, page builder, or site template. Marketo forms load dynamically using the embed script, so they can be embedded on any external page.

After adding the embed code to your site, publish your page. Your form will be live and ready to capture submissions, with Madlitics attribution values flowing into the lead record.


For existing forms

If you updated an existing form, click Finish, then Approve and Close in Marketo. Your changes will automatically apply to any embedded instances of the form, so no updates to the embed code are required.

In Marketing Activities, select your form, then click Form Actions → Embed Code

Copy the provided embed code, then paste it into your website where you want the form to appear

Test your setup
To confirm everything is working correctly, visit your live page with UTM parameters in the URL. For example:  
?utm_source=google&utm_medium=cpc&utm_campaign=marketo-test

Submit the form as a visitor would. In Marketo, you should see attribution values like channel, segment fields, and landing page data stored alongside the lead record. This test reinforces that your Marketo‑based attribution setup is capturing UTM‑style data and will show you exactly which campaigns and channels are driving leads.

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.
Stacked bar chart illustrating lead volume across different marketing campaigns, including Black Friday, Retargeted, Spring Promo, Referral, and SEO. Highlights trends in campaign effectiveness.
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.

With everything set up, your Marketo forms are now ready to capture attribution data right alongside each lead submission. Instead of losing context when someone clicks around your site, that data is passed directly into your Lead records at the moment of conversion, giving you a clear view of how each lead found you.

This is where things start to click. With attribution stored on the lead itself, you can build smarter Smart Lists, improve campaign reporting, and give your team real context on every new inquiry. Hidden fields make this possible by capturing data behind the scenes without affecting the form experience .

From here, every form submission becomes more than just a contact. You’re capturing the channel, campaign, and landing page that drove it, so you can focus on what’s actually working and make better decisions moving forward.

Related articles to get you started with Madlitics

Frequently asked questions

Answers to your top questions about our UTM parameters
Everything you need for reliable lead attribution
Accurate, persistent, and automated tracking — so your campaigns perform at their best.
Performance icon symbolizing marketing campaign effectiveness and results tracking.
Outperforms basic UTM tracking
Madlitics captures, categorizes, and persists attribution data across sessions, giving you a complete, structured view of what’s working in your marketing. Say goodbye to losing attribution when users navigate your site, struggling with formatting inconsistencies, and ingored non-UTM traffic.
Capture icon indicating data collection from various marketing channels and sources.
Capture all traffic
Madlitics categorizes all inbound leads — whether they have UTM parameters or not — so every conversion is accounted for, and you won't miss out on Organic Search, Organic Social, and Referral traffic.
Routing icon representing the flow of marketing data and attribution pathways.
Attribution across pages and sessions
A LinkedIn ad click should be attributed correctly—even if the visitor signs up on a different page later. If someone clicks an ad, browses multiple pages, then submits a form later, Madlitics persists attribution data across sessions, ensuring your reports reflect true performance.
List icon representing structured marketing data, reports, or campaign breakdowns.
Cleaner, more reliable data
Duplicate UTMs and inconsistent formatting break reports and mislead teams. Madlitics cleans and organizes attribution data before sending it to your CRM, giving you accurate insights.
Target icon symbolizing precise audience targeting and marketing campaign focus
See which content converts
Attribution isn’t just about where visitors came from—it’s about what convinced them to convert. By capturing landing page data alongside UTM parameters, Madlitics shows you which blog posts, case studies, or pricing pages drive the most revenue, helping you scale content that works.
Action icon representing campaign execution, optimization, and engagement.
Transform form submissions into actionable insights
Madlitics connects marketing touchpoints to lead generation, ensuring every form submission is fully attributed — optimize ad spend by identifying high-ROI channels, refine messaging based on what content drives engagement, make data-driven decisions with clean, structured reports, and more.