Track leads and customers from AI in WPForms
AI tools like ChatGPT, Claude and Gemini increasingly send visitors to your site, but a form submission alone does not tell you where that visitor came from. This guide shows how to attach AI referral data to every WPForms submission and turn it into reports on leads, customers and revenue.
Why AI referral data matters
Counting AI 'mentions' or 'citations' does not tell you whether those mentions produce business. What matters is how many leads arrived from AI tools, how many became customers, and how much revenue they generated. That is the information you need to decide whether to invest more in AI-search optimization.
The approach below captures the referral channel and landing page for each form submission, then passes that data to your CRM or reporting tool. From there you can build reports that separate AI referrals from organic search, paid search and paid social.
Step 1: Install the tracking script and add hidden fields
Start by adding the tracking snippet to your website. The setup instructions are linked from the help center. Once the script is in place, add a Hidden field to the bottom of each WPForms form for every data point you want to capture.
The fields to add are:
- Channel
- Channel Drilldown 1
- Channel Drilldown 2
- Channel Drilldown 3
- Landing Page
- Landing Page Group
In WPForms, drag a 'Hidden' field into the form and give it a name and default value. Step-by-step instructions for adding hidden fields to WPForms are available in the help center.
Step 2: How the tracking script classifies each visitor
When a visitor lands on your site, the script examines signals similar to those Google Analytics uses to determine how the visitor arrived. It assigns the visitor to a channel such as AI Referral, Organic Search, Paid Search or Paid Social, and stores that classification in the browser.
When the visitor later submits a form, the script writes the referral details into the hidden fields. For an AI referral, that includes the fact that the visitor arrived from an AI tool and which tool it was.
Step 3: What gets saved with each submission
WPForms saves the hidden-field values alongside the lead's name, email and any other form entries. You can view the data on the Entries page in the WPForms section of your WordPress dashboard, include it in new-lead notification emails, or send it to your CRM, a spreadsheet or an analytics tool.
Step 4: Build reports on AI leads
Once the data reaches your CRM or storage tool, you can report on how many leads and customers came from AI, which AI tools sent them, which content attracted them, and how much revenue followed. Most CRMs can produce basic reports; dedicated tools such as Tableau, Google Data Studio or Microsoft Power BI can handle more complex reporting.
If you prefer asking questions to building charts, connect Claude or ChatGPT to your CRM and ask something like: 'How many leads did I get from AI referral this month?'
What data gets captured: a worked example
The tracking script passes two kinds of information: the channel that brought the visitor to your site, and the landing page that attracted them.
Consider a recruitment agency. A hiring manager asks ChatGPT which agencies specialize in placing finance professionals. They click through to the agency's site and submit a form to request a call. The form submission would carry the following values:
- Channel = AI Referral
- Channel Drilldown 1 = ChatGPT (or whichever AI tool sent them)
- Channel Drilldown 2 = chatgpt.com (the domain they came from)
- Channel Drilldown 3 = None (there is no deeper level of detail for an AI referral)
The landing page data would show which page the visitor first landed on. In this example:
- Landing Page = harbourtalent.com/sectors/finance-recruitment
- Landing Page Group = /sectors
That landing page data reveals which content AI tools are reading and recommending, which helps you decide what to create more of.
Four reports worth building
These four reports turn raw referral data into decisions about where to invest time and budget.
Report 1: Leads by channel
This report shows monthly lead volume broken down by channel: AI Referral, Organic Search, Paid Search, Paid Social and others. It shows how much AI contributes to your lead targets. If AI referrals are a small slice, there is room to grow; if they are approaching organic search volume, your AI-search efforts are gaining traction.
Report 2: Customers by AI tool
This report shows monthly new customers broken down by the AI tool that sent them. It lets you compare ChatGPT, Claude, Gemini and others to see which tools your target market actually uses. If most AI-sourced leads come from ChatGPT, that is likely where to focus your optimization efforts.
Report 3: Close rate by channel
This report shows how often leads become customers, broken down by channel. It is often the most revealing of the four because lead volume alone can mislead. For example, you might find that 35% of AI Referral leads become customers, compared with 10% of Organic Search leads and 7% of Paid Search leads. If your numbers look like that, an AI-sourced lead is worth several times a paid-search lead, which should change how you allocate budget.
Report 4: Revenue from AI by landing page
This report shows how many customers and how much revenue each piece of content has generated from AI referrals. It makes it easy to see which pages AI tools cite and send leads to. Treat it as a content roadmap: when a handful of pages account for the bulk of AI-attributed revenue, those pages reveal the subject matter and format worth expanding, and the rest of your library shows where AI-driven demand is thin.
A quick checklist before you start
Use this checklist to avoid common setup gaps:
- Confirm the tracking script is installed on every page that hosts a form.
- Add all six hidden fields to each form, not just the Channel field.
- Use consistent field names across forms so reports can combine data.
- Verify that Channel Drilldown 3 shows 'None' for AI referrals rather than being left blank.
- Check that the landing page values match the pages you expect AI tools to cite.
- Test one submission end-to-end before relying on the data.
Frequently asked questions
What does 'None' mean in Channel Drilldown 3 for an AI referral?
It means there is no deeper level of detail available for an AI referral. The channel is AI Referral, the tool is in Channel Drilldown 1, the domain is in Channel Drilldown 2, and Channel Drilldown 3 is set to None.
Can I see AI referral data without a CRM?
Yes. WPForms saves the hidden-field values with each entry, so you can view them on the Entries page in your WordPress dashboard or include them in new-lead notification emails. A CRM or reporting tool makes it easier to aggregate and compare channels over time.
Which AI tools can be identified?
The tracking script assigns AI referrals to a channel and records the specific tool in Channel Drilldown 1. The source examples mention ChatGPT, Claude and Gemini, but the exact list of identifiable tools depends on the tracking configuration.