Short answer: To track where website leads come from, save the visitor's first outside source (the referring site or the utm_source in the link) and the first page they read when they arrive, then send both with every form submission so they're stored with the lead. Add UTM parameters to links you control, such as your Google Business Profile and emails, and use Google Analytics, which now groups ChatGPT, Gemini, Copilot, and similar visits into an "AI Assistant" channel. Analytics alone undercounts AI traffic, because many clicks from AI apps arrive with no referrer.
Key facts
- Store the source with the lead: the first outside referrer or UTM source, plus the first page read, saved when someone arrives and sent with the form.
- UTM parameters: Google Analytics says to always use
utm_source,utm_medium, andutm_campaignwhen you tag a link; missing ones show up as "(not set)." - ChatGPT tags its links: OpenAI says ChatGPT adds
utm_source=chatgpt.comto referral URLs. - Referrers often go missing: many clicks from AI apps arrive with no referrer, so analytics counts them as Direct. Track the UTM, not just the referrer.
- GA4's AI Assistant channel: groups visits from assistants such as ChatGPT, Gemini, DeepSeek, Copilot, and Grok. Google's own AI Overviews and AI Mode are not in it.
- Phone calls need their own method: a tracking number per source, or a required "how did you find us?" question when the call is logged.
Why isn't analytics enough to see where leads come from?
Because analytics counts visits, not customers, and it misses a lot of them. Google Analytics can tell you that 40 people arrived from ChatGPT last month. It can't tell you that the kitchen remodel you signed on Tuesday was one of them, unless the source travels with the lead.
Analytics also gets the source wrong more often than people think. When someone taps a link inside the ChatGPT app or another AI app, the browser often doesn't pass along where they came from, so the visit lands in "Direct." People who see your name in an AI answer and then search for it show up as Google searches. And phone calls don't show up anywhere.
How do you record the source of each lead?
Capture it when the visitor arrives, keep it in the browser, and attach it to whatever they submit. The steps:
- On the first page view, read the referring site and any
utm_source,utm_medium, andutm_campaignin the address. Save them, along with the page they landed on, in the browser (local storage or a first-party cookie). Don't overwrite them on later page views, so you keep the original source. - Add hidden fields to every form (contact, quote, booking) and fill them from what you saved.
- Store them with the lead in your email notification, CRM, or spreadsheet. A line like "Found us via chatgpt.com, first page: /learn/how-much-does-a-deck-cost" is enough.
- Mention it in your privacy policy: say that you record how visitors found the site and send it with their inquiry.
- Review monthly: count leads (and, better, jobs won) by source.
This is a small amount of code. It works the same on a custom site, WordPress, or a builder that allows custom code and hidden form fields.
How do you use UTM parameters?
Add them to every link you control that points to your website, so the source is labeled even when the referrer is missing. Google Analytics supports several parameters; these three cover most needs:
| Parameter | What it says | Example |
|---|---|---|
utm_source | Where the link was | google-business-profile, newsletter, yard-sign |
utm_medium | What kind of channel | organic, email, print |
utm_campaign | Which effort | spring-2027, listing |
Good places to use them: the website link on your Google Business Profile, Yelp and other directory listings, email signatures and newsletters, social profiles, and QR codes on printed material (a short address that redirects to a tagged link works well on signs). Keep the values lowercase and consistent, or your reports will split one source into several.
How do you track leads from ChatGPT and other AI assistants?
Use three signals together, because no single one is complete:
- The UTM: OpenAI says ChatGPT adds
utm_source=chatgpt.comto referral links. Your lead-source code should look for it in the address, not just in the referrer. (A ChatGPT bug stripped it from many links for about a week in October 2026, which shows why you shouldn't rely on one signal.) - Google Analytics' AI Assistant channel, which groups visits from ChatGPT, Gemini, Copilot, and similar assistants. Google's own AI Overviews and AI Mode are not part of it, so treat those clicks as part of Google search.
- Asking. "How did you find us?" on the form or the phone catches people who saw you in an AI answer and then searched your name.
Expect AI assistants to be a small share of visits for now; most small business sites still get far more from Google. More detail is in how to tell if ChatGPT sends you traffic.
How we handle this
Every website we build records the first source and first page for each visitor and sends them with every form, so each lead shows whether it came from Google, ChatGPT, a referral, or a listing. We can send leads straight into your CRM or email with that information attached, and set up Search Console, Bing Webmaster Tools, and analytics at launch so the first weeks of data aren't lost.
What about phone calls?
Calls are often most of a service business's leads, and they're invisible to your website unless you plan for them. Two practical options:
- Tracking numbers: a call tracking service gives each source its own forwarding number (website, Google Business Profile, print ad) and logs calls by number. It costs a monthly fee and needs care so your main number stays consistent across listings.
- Ask and log it: make "How did you hear about us?" a required field wherever calls are logged, with a short fixed list of answers. Low-tech, and surprisingly useful.
Questions
Should I credit the first source or the last one?
For a small business, record the first outside source and the first page read; that's what tells you which content and channel introduced the customer. If you want more, also record the latest source before the form was sent. Don't let an internal link or a return visit overwrite the original.
Is it legal to record where a visitor came from?
Recording the referring site and landing page with a form someone chooses to send is common practice, but privacy rules vary by state and by what else you collect. Describe it in your privacy policy, collect only what you use, and check with an attorney if you handle sensitive data or serve customers in states with their own privacy laws.
How do I track leads from my Google Business Profile?
Add UTM parameters to the website link in your profile (for example utm_source=google-business-profile and utm_medium=organic), so visits from it are labeled separately from regular search. If your profile is verified, its Performance report also counts clicks on the call button and on the website link.