Set up Zoho CRM Webforms to capture UTMs and attribution


Madlitics captures each visitor’s original marketing attribution and adds it to your configured Zoho CRM Webform submissions. Their channel, campaign details, and landing page appear alongside their contact information on the resulting Lead record.
Follow these four steps to create the CRM fields, configure hidden webform fields, publish your form, and verify a test submission.
Before you begin, install Madlitics across your website, including the page containing your webform. This guide covers native Zoho CRM Webforms using the Source Code publishing option.
Step 1:
In Zoho CRM, open Setup → Customization → Modules and Fields. Select the Leads module, this is where your web form submissions will be stored. Inside the Leads module, open the Layouts tab and choose your active layout.
Create a new section named Attribution, and create seven Single Line fields: Channel, Segment 1, Segment 2, Segment 3, Segment 4, LP, LPG. These fields will store the attribution received with each submission. Save the layout.




Channel).

Channel, Segment 1, Segment 2, Segment 3, Segment 4, LP, LPG.Step 2: Return to Setup and open Webforms under Channels. Create a New form for the Leads module (updated in the previous step), or edit an existing Leads webform. Build forms as usual, adding contact fields, etc. then add the seven attribution fields created in Step 1.
Locate the attribution fields you created in Step 1 and add the first one to your form: Channel. Open its settings and mark it as a hidden field, setting the 'Default value' to [channel].
Repeat this process for the six remaining fields, using [segment1], [segment2], [segment3], [segment4], [lp], and [lpg].
These default values identify the fields for Madlitics. When tracking runs correctly, Madlitics replaces them with the visitor’s attribution before submission.



Channel, Segment 1, Segment 2, Segment 3, Segment 4, LP, LPG

[channel], [segment1], [segment2], [segment3], [segment4], [lp], [lpg]

Step 3: Continue to the form’s publishing settings. Enter the Form Location URL and configure your confirmation message or thank-you redirect. Save the form, then select Source Code from the publishing options. Copy the generated code into your website’s HTML or embed element where the form should appear.
Publish the page and confirm that the form displays correctly. Madlitics must also be installed and active on that page to populate the attribution fields. If you update an existing webform, replace its published embed code with the updated version so the new fields are included.


Make sure Madlitics is installed on the domain where your Zoho CRM Webform is hosted. If Madlitics isn’t installed, the attribution fields in your form won’t receive any data.
Open a fresh private browsing session so previous first-touch attribution does not affect your test. Visit the published page containing your webform using a URL tagged with recognizable test values: https://yoursite.com/demo?utm_source=google&utm_medium=cpc&utm_campaign=zoho_setup_test&utm_term=marketing_teams&utm_content=reporting_video
Replace the domain and path with your actual form page. Submit the form using a unique test email address, then open the resulting Lead record in Zoho CRM. Confirm Channel is Paid Search, Segment 1 is google, Segment 2 is zoho_setup_test, Segment 3 is marketing_teams, and Segment 4 is reporting_video. Check that LP and LPG reflect the original landing page and its group.

To test persistence, start another fresh session on a tagged landing page, navigate to your form without carrying the UTMs forward, and submit. The new Lead should retain attribution from the original visit.
If attribution fields are blank or still contain placeholders such as [channel], check that Madlitics is active, the default values match the table, and the published form includes the updated hidden fields.
Your Zoho CRM Webform is ready once the test Lead contains the expected attribution values. Use those fields to filter leads and build campaign reports. To retain attribution after lead conversion, configure the relevant field mappings to the resulting records.
For campaign examples and reporting guidance, read our guide to capturing UTM parameters in Zoho CRM.
Answers to common questions about setting up Zoho CRM and Madlitics