How to track lead source in Divi forms
Every Divi contact form enquiry becomes a lead record, with the campaign, landing page and page journey that produced it.
- Channel
- Organic search
- Referrer
- google.com
- Landing page
- /blog/managed-it-costs
- Divi form
- Contact
- /blog/managed-it-costs
- /pricing
- /contact
Divi enquiries, kept with their source
The module emails you. Lead Source keeps the lead, campaign attached.
Divi leads, stored by Lead Source
No entry table required. Each enquiry lives on, sortable by channel.
Divi popups and Extra, covered
Popups, modals, Extra and theme builder layouts all sit on tracked pages.
Paste, clear, regenerate: Divi done
One header paste, then clear the caches and rebuild static CSS.
Divi enquiries, kept with their source
From Divi come every field the visitor filled in, which form and which page. Lead Source brings the rest. Source and channel, the campaign and its UTM set, the click IDs, the landing page and its referrer, first and last visit, and each page viewed before the send button.
- Every Divi field, exactly as typed.
- Channel, campaign and referrer on one lead.
- The run of pages that led to the form.
- Name
- Mike Reeves
- Form
- Contact
- Page
- /contact
- Channel
- Organic search
- Landed on
- /blog/managed-it-costs
- Referrer
- google.com
- Pages read
- 3 before sending
- Organic43%
- Paid25%
- Direct14%
- Email11%
- Referral7%
Divi leads, stored by Lead Source
The Divi contact form module emails each submission straight to you. Keeping a copy in WordPress takes a plugin. Lead Source keeps the lead itself, so every enquiry gets a record with its marketing attached, ready to sort by channel and campaign. A storage plugin is still worth having, so Divi holds its own copy too.
- Every enquiry kept as a lead.
- Sorted by channel and by campaign.
- Your email notifications carry on as before.
Divi leads, from first look to sent
Every lead keeps the visit that introduced that person and the visit they sent the form on. The blog post that got them reading earns its credit. So does the campaign that brought them back.
Divi popups and Extra, covered
A form in a Divi popup or modal still sits on a page running the tracking code, so its enquiries arrive with their source. The same goes for the Extra theme and anything the Divi theme builder renders. The code lives in the header. Whatever built the page, it tracks.
- Popup and modal forms included.
- Extra theme pages included.
- Theme builder layouts and templates, likewise.
- /blog/managed-it-costsFound you on Google
- back a week later
- /managed-it
- /pricingDivi popup form
<script async src="https://app.leadsource.co/ft.js" data-site="YOUR_SITE_KEY"></script>
Paste, clear, regenerate: Divi done
- Install the free WPCode plugin from the WordPress plugin directory.
- Open Code Snippets, then Header and Footer, paste the Lead Source tracking code into the Header section and save.
- Clear your page cache, and regenerate Divi’s static CSS. On a Divi site this step matters more than anywhere else.
Divi sites run static CSS generation, page caching and builder caching, all of it good for speed. Existing pages pick up the code once those caches are cleared. Do it once. Nothing changes in the module, and the rest of your stack is on WordPress lead tracking.
5-minute install · no card
How do I attach a campaign to Divi contact form enquiries?
Install WPCode, paste the Lead Source code into its Header section, then clear the page cache and regenerate static CSS. Each enquiry after that lands in Lead Source as a lead with its channel, campaign, landing page and page journey.
Which Divi enquiries carry limited attribution?
Divi caches aggressively. Pages served before you clear the cache and regenerate static CSS run without the code. Enquiries from someone Lead Source never saw before they submitted carry attribution that is limited or unknown.
Divi questions, answered.
Does it work with Divi popups and modals?
Yes. A form in a popup is still on a page the tracking code is on.
Do I need a plugin to store Divi submissions?
Not for Lead Source. It is worth having anyway so Divi keeps its own copy.
Does it work with Extra or the Divi theme builder?
Yes. The code sits in the header and does not care what rendered the page.
Turn Divi enquiries into tracked leads. Free to start.
Each enquiry is kept with the campaign, the landing page and the pages read before it.
Start freeFree to start · no card









