Set up Typeform to capture UTM parameters and marketing attribution

Configure Typeform URL parameters, embed your form, and verify that attribution appears with each response.
Attribution is broken

This guide shows you how to connect Madlitics to an embedded Typeform using custom URL parameters. You’ll configure the Madlitics Fields, publish your form, and submit a test to check the captured attribution.

Before you start
  • Have access to your Typeform editor and website.
  • Install Madlitics on the website where you’ll embed the form.

Step‑by‑step setup video

In Typeform, create a new form or use an existing one

Step 1: Open an existing Typeform form or create a new one, and add your lead-capture questions before configuring the attribution parameters.
‍

Select 'Start from scratch' as the way to build the form.

‍

Add form elements like text, multiple choice, or contact fields to structure your form.

Add your Typeform URL parameters

Step 2: In your Typeform editor,

  1. Open the Workflow tab of your form.
  2. Click the '+' in the Pull data in section.
  3. Select + Add new parameter.
  4. Enter channel and save.
  5. Repeat for the remaining parameters below.
  6. Save when complete.

Use the parameter names exactly as shown, in lowercase. Madlitics supplies the attribution values when visitors use your embedded form.
‍

Access Workflow

‍

Add new parameter

‍

Update the parameter to match the Madlitics field values (listed above).

‍

Repeat this process for the 6 remaining Madlitics fields, and Save.

Default Madlitics Fields

Parameter
What it captures
channel
The original marketing channel, such as Paid Search, Organic Search, or Referral.
segment1
The original source, including utm_source for tagged campaigns.
segment2
The original campaign from utm_campaign, with channel-specific values for untagged traffic.
segment3
The value of utm_term, when provided.
segment4
The value of utm_content, when provided.
lp
The visitor’s original landing page URL.
lpg
The original landing page group, based on the first URL path segment.
Click IDs
(Optional) Advertising click identifiers, gclid, fbclid, li_fat_id, msclkid, etc.

* Values depend on the campaign tags and source information available when the visitor first arrives.

Publish and embed your Typeform

Publish your Typeform changes, then add the form to your website using Typeform’s embed code.

Make sure Madlitics is installed on the website where the form appears. Test using that embedded form so you can verify that website attribution reaches your Typeform responses.

Copy Typeform embed code for your site

‍

Test your Typeform attribution

Open a fresh private browsing window to avoid previously stored attribution. Visit a page on your website using a tagged URL like this: https://yourwebsite.com/?utm_source=test&utm_medium=cpc&utm_campaign=typeform_setup&utm_term=test_keyword&utm_content=test_ad. Navigate to the page containing your embedded Typeform, then submit a test response. Open Results → Responses in Typeform and inspect the submission.
‍

Marketing attribution data will begin displaying alongside your leads in the Responses tab

‍

Check that segment1 contains test, segment2 contains typeform_setup, segment3 contains test_keyword, and segment4 contains test_ad. The lp field should contain the page where you started the visit.

If values are missing, check that Madlitics is running, your parameter names match exactly, and your latest Typeform changes are published. If you send responses to a CRM or another tool, also confirm that the Madlitics Fields are mapped and arrive with the test submission.

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 configured for your embedded Typeform, responses can include available original channel, campaign, and landing page data. Map those parameters into your CRM or reporting tools to connect marketing sources with leads, customers, and revenue.

If you’d like a hand getting everything live or want to confirm your setup is working correctly, our team is here to help. Reach out anytime and we’ll guide you through it.

Frequently asked questions

Answers to common questions about Madlitics and Typeform