Capture Google Ads data in Divi Forms
Visitor counts alone do not show whether paid search produces enquiries, customers or revenue. This guide explains how to attach campaign information to a Divi form submission, so each lead carries the channel, campaign, ad and landing page that preceded it.
Step 1: Tag your ads with UTM parameters
Add campaign tags to the destination URL first. A consistent naming pattern makes later reporting reliable. For Google Ads, use paid search for medium, Google for source, the campaign name for campaign, the ad group name for term, and the specific ad for content. Keep the same spelling and capitalisation across ads so reports do not split one campaign into several variants.
Step 2: Add six hidden fields to the form
Open the relevant Divi form, add a new field, and choose Hidden Field as its type. Repeat the process six times, once for each field below. These fields stay invisible to the visitor but travel with the submission.
What each hidden field should hold
Channel: the broad source category, such as Paid search. Channel Drilldown 1: the platform, such as Google. Channel Drilldown 2: the campaign name. Channel Drilldown 3: the ad. Landing Page: the first page the visitor opened. Landing Page Group: the section that page belongs to, such as the blog area. When a visitor arrives from a brand campaign and later submits the form, the first four fields describe that campaign and ad, while the last two identify where the journey began.
Step 3: Let the values follow the visitor to submission
Once the fields exist, the attribution tool fills them from the saved UTM values when the form is submitted. Because those values are stored in the browser, they survive navigation between pages. A visitor who lands on the homepage and then moves to the contact page therefore does not lose the campaign context. On submission, the hidden-field values are stored alongside the name, email, phone and other details the visitor entered.
Before you go live: a short checklist
Check that all six hidden fields are present and correctly named. Confirm the UTM pattern is applied to every paid search URL. Submit a test form after arriving through a tagged link and verify that the channel, campaign, ad and landing page values appear. Then decide where submissions should be reviewed: in WordPress, in notification emails, or in a CRM such as Salesforce, Pipedrive or HubSpot for lead and customer reporting.
Three reports worth building
With source data attached to each record, three reports become practical. Leads by Channel compares monthly lead volume across every source and highlights a mismatch between budget and results. Customers by Google Ads Campaign shows which campaigns produce paying customers rather than only enquiries. Revenue by Keyword breaks new-customer revenue down by the keyword that triggered the ad, helping you shift spend toward the terms that pay back.
Wrap up
The key distinction is between counting visits and counting outcomes. Analytics can show that paid search sent traffic, but only form-level attribution connects that traffic to individual leads, customers and revenue. Tag the ads, add the hidden fields, test a submission, and route the data to the tool where you already review pipeline performance.
| Hidden field | What it records | Example value |
|---|---|---|
| Channel | Broad source category | Paid search |
| Channel Drilldown 1 | Platform | |
| Channel Drilldown 2 | Campaign | Brand campaign |
| Channel Drilldown 3 | Ad | Website optimisation ad |
| Landing Page | First page visited | First landing page URL |
| Landing Page Group | Section of the landing page | Blog section |
Example values follow the brand-campaign scenario in the source; actual values come from your own UTM parameters.
Frequently asked questions
Does this only track Google Ads leads?
No. The setup described records the source of every lead, including Organic Search, Organic Social, Paid Social and Direct traffic, not only paid search.
What if the visitor browses before submitting a form?
The UTM values are saved in the visitor's browser, so they remain available when the form is completed on a later page rather than the first landing page.
Is landing page information captured too?
In addition to campaign data, the first landing page and its group are recorded, which makes it possible to see which content is associated with leads, customers and revenue.