Set up Tally forms to capture UTM parameters and marketing attribution

Follow these steps to add Madlitics fields and embed your Tally form to receive channel, campaign, and landing page data alongside each response.
Attribution is broken

You can use a new or existing Tally form. Before you begin, make sure Madlitics is installed on the website where you’ll embed the form.

The steps below show you how to add the required hidden fields, publish your form, and check the captured data in Tally.

Create a new or use an existing form

Step 1: From your Tally dashboard, open the form you want to configure or click + New form to create one. Add your questions and contact fields as usual.

‍

Use a new or existing form and set it up as usual

‍

‍

Build forms as usual

Add the Madlitics fields to collect attribution

Step 2: In the form editor, type /hidden and select Hidden field. Name the first field channel.

Repeat this process to add six more fields: segment1, segment2, segment3, segment4, lp, and lpg.

Use these names exactly as shown. These fields will receive the visitor’s channel, campaign segments, original landing page URL, and landing page group. They won’t be visible to respondents.

‍

Add a hidden field

‍

I like to use the 3 dots to add additional fields in the same group

‍

Once these are in place, click Publish to get the embed code

‍

Madlitics field values

Field

Name

Description

Hidden Field

channel

Categorizes the visit’s marketing channel based on traffic type, referring domain, and known platforms.

Hidden Field

segment1

Identifies the traffic source. For paid traffic this records utm_source, for organic traffic the platform, for referrals the referring domain.

Hidden Field

segment2

Captures campaign-level details. For paid traffic this records utm_campaign, for organic traffic the referring domain.

Hidden Field

segment3

Captures keyword or content-level detail. For paid traffic this records utm_term, for organic traffic the full referring URL when available.

Hidden Field

segment4

Captures audience or variation details. For paid traffic this records utm_content.

Hidden Field

lp

Captures the exact page where the visitor first entered your site.

Hidden Field

lpg

Captures the category or grouping of the landing page for reporting.

Field

Name

Hidden Field

channel

Hidden Field

segment1

Hidden Field

segment2

Hidden Field

segment3

Hidden Field

segment4

Hidden Field

lp

Hidden Field

lpg

Publish and embed your Tally form

Step 3: Click Publish, then open the Share tab and select Standard embed.

Adjust the display settings as needed, then click Get the code. Copy the HTML embed code and paste it into your website where you want the form to appear. Publish your website changes. Make sure Madlitics is installed on the website containing the embedded form before proceeding.

‍

Select the Embed option 'Standard'

‍

Click 'Get the code'

‍

Copy the embed code and paste it into your website where you want the form to appear

Receive marketing attribution in Tally submissions

Step 4: When a visitor submits your configured Tally form, their response includes the original marketing channel, campaign segments, landing page URL, and landing page group alongside their contact details and answers.

Open a response in Tally’s Submissions tab to view the captured data. For campaign-tagged traffic, the segments include the source, campaign, term, and content values supplied through your UTM parameters.

These attribution fields can then flow through your configured Tally integration into your CRM, spreadsheets, or reporting tools.

‍

Captured attribution data will populate in your Tally submissions page
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 or more for advanced reporting.

Frequently Asked Questions

Answers about configuring Tally forms to receive Madlitics attribution data.