Reading time: 11 minutes
To attribute ChatGPT leads in your CRM, save the source when the form is sent, not later. GA4 shows only the clicks that arrive with a readable source, and the CRM applies its own source rule. So three records need to coexist: the tracked source, the hidden fields and the answer to “how did you hear about us?”
In short
- GA4 classifies the session, not the leads in the CRM. So only the source saved in the form reaches the lead record.
- Part of the ChatGPT leads lands in Direct, because apps, copied links and conversations without a click leave no referrer.
- To attribute leads safely, save UTM, source domain and entry page in hidden fields. Save the declared answer in another field and never overwrite one with the other.
- Report a confirmed minimum and a gray zone, not a total. We found no source that publishes a margin of error for this attribution.
What does GA4 show about ChatGPT leads?
GA4 shows the sessions that came from ChatGPT, not the leads saved in the CRM. So the visits it recognizes land in the AI Assistant channel. According to the default channel definitions, the channel covers visits from sources like ChatGPT, Gemini, Deepseek, Copilot or Grok. It also excludes Google’s AI Overviews and AI Mode.
The step-by-step guide to reading the channel and joining the three slices of chatgpt.com is in the AI traffic in GA4 guide. Here, however, the point is different. For a lead, GA4 reports the session in which the submit event fired. So if the person read the post in one visit and sent the form in another, the event channel can differ from the channel of the first contact.
In addition, the CRM calculates the source on its own, with rules that can differ from Google’s. To attribute leads with precision, first see how GA4 treats Direct in the attribution model guide. Our recommendation: use GA4 for sessions, and keep the leads in the CRM with the source saved in the form.

Why do some ChatGPT leads show up as direct?
Because GA4 and the CRM classify a click as AI only when its source is readable, and many paths from ChatGPT to the form don’t carry one. By Google’s definition, Direct covers visits through a saved link or by typing the address. So the same lead can arrive by four paths without a trace:
- App without a referrer: in a July 2025 post, Cloudflare reported that it saw that clicks in the native Claude app arrived without the Referer header. The company said it believes the same holds for other native apps. However, we found no equivalent public measurement for ChatGPT.
- Typed address: the person reads the recommendation and then opens the site by typing the domain.
- Brand search: the person sees the name in ChatGPT and searches on Google. So the lead enters as organic search.
- Incomplete UTM: if the URL has any UTM, the Google help page says GA4 derives the source from the UTM only (when a Google Ads click ID does not apply), and anything missing becomes (not set).
An archived copy of the OpenAI FAQ said that ChatGPT added utm_source=chatgpt.com to search links. That page is no longer online, and we found no current documentation that confirms the parameter. Because the copy cites only that parameter, GA4 may then record the medium as (not set). This conclusion is our own deduction from Google’s rule.
How does each system record this path?
Next, the table shows the same path in GA4 and in HubSpot. Both columns come from their documentation.
| Lead path | GA4 | HubSpot |
|---|---|---|
| Click in ChatGPT, with a referrer | AI Assistant | AI Referrals |
| Click in the app, no referrer or UTM | Direct | Direct traffic |
| Address typed after the conversation | Direct | Direct traffic |
| Brand search on Google | Organic Search | Organic search |
How do you save the source of ChatGPT leads in the form?
Save the source in hidden fields, because the CRM only knows what arrives with the submission or what its tracking code captures. That way, each lead is born in the CRM with its own source and does not depend on GA4.
First, the guide to measuring blog leads gives the snippet that stores the UTM, the entry page and the source domain. Then it fills in the fields. For ChatGPT leads, the most useful field is external_referrer. That is because, when the browser sends the referrer, the field gets chatgpt.com even without a UTM.
If the utm_source=chatgpt.com parameter comes in the link, the UTM field stores it too. However, OpenAI may change this, so don’t depend on it. Still, external_referrer and the declared answer cover the rest. To keep the CRM leads with a full source, create the fields in the table, which is our recommendation:
| CRM field | What it stores | Where it comes from |
|---|---|---|
| utm_source, utm_medium, utm_campaign | UTM of the first page of the session | Hidden field |
| external_referrer | Domain the click came from | Hidden field |
| entry_page | First page of the session | Hidden field |
| how_heard | Category the person chose | Form question |
| how_heard_ai | Which AI the person named | Conditional question |
| ai_source_final | Result of the rule in the next section | Rule or manual review |
In addition, saving the source with the lead is one more purpose to state in your privacy policy. The guide above covers this care. Privacy rules differ by country and by US state, so check with a privacy professional. This is general guidance, not legal advice.
How do you use “how did you hear about us” in attribution?
Use the question to record the lead that the tracked source can’t see, and keep the answer in a separate field. The guide to self-reported attribution shows the options, with “AI recommendation” and the “Which AI?” field. Then join the two sources with a fixed rule, so you can attribute leads without mixing the data. The table is our recommendation:
| Is the tracked source an assistant? | Does the answer name an AI? | ai_source_final |
|---|---|---|
| Yes | Yes | AI, click confirmed |
| Yes | No or blank | AI, click confirmed |
| No | Yes | AI, declared |
| No | No or blank | No sign of AI |
Never overwrite the tracked source with the declared one, or the other way around. When the two disagree, keep both and flag the lead for review. For example, the person may have clicked a ChatGPT recommendation and still credit the decision to a referral. So this disagreement is information, not an error.
In addition, keep in one place the list of assistant domains that classifies the CRM leads, and review it every quarter. The regex in the AI traffic guide for GA4 works as a starting point.
How do you attribute ChatGPT leads in HubSpot?
In HubSpot, the ChatGPT lead appears as AI Referrals when the click brings a recognized source. According to the source properties documentation, Original Traffic Source stores the first known web source of the contact. Latest Traffic Source stores the most recent one.
Also, the example on that page is a click from ChatGPT. There, Latest Traffic Source becomes AI Referrals, with chatgpt.com in drill-down 1 and, in drill-down 2, the campaign, if there is a utm_campaign.
The classification rule covers UTM and referrer. So if a UTM contains the domain of a recognized AI platform, or the referrer is one, the source is AI Referrals. The list has nine platforms, including ChatGPT, Claude, Perplexity, Copilot, Gemini and Grok. On the other hand, with no referring domain and no tracking URL, the visit becomes Direct traffic.
Which steps should you follow in HubSpot?
Follow these steps, which combine the documentation with our own recommendations:
- Compare the two sources. On the contact, open Original and Latest Traffic Source. For example, the lead may have a direct app visit as the first source and a ChatGPT click as the latest.
- Create your own property. To attribute leads with the customer’s answer, store the declared source there, instead of relying on the automatic field.
- Fill the UTM through a hidden field. The hidden fields documentation says they capture URL parameters, such as UTM. However, if the option to pre-populate fields for returning visitors is on, the hidden value may be overwritten.
- Don’t edit the automatic source. When you change the value, HubSpot clears drill-downs 1 and 2. So record the correction in your own property.
In addition, HubSpot warns that an ad blocker can block the tracking cookies and affect these properties. Finally, we read the documentation and did not open an account or test the flow.
How do you attribute ChatGPT leads in Salesforce?
In Salesforce, the lead source is a value you set, so attribute leads by passing your own fields through the form. The help article on identifying Web-to-Lead leads (published February 2025) says there is “no automated feature to identify how a lead is created.” Its workaround, however, is a hidden Lead Source field that the developer fills in.
Follow these steps, which combine the Salesforce articles with our own recommendations:
- Create custom fields on the Lead object. First, use the table above, with one field per UTM, the source domain, the entry page and the declared answer.
- Pass them as hidden inputs. According to the article on passing hidden parameters (published May 2026), you add a hidden input to the form. For a custom field, use the custom field ID as name and id. The article’s example sets a fixed value, so filling it from the URL needs your own script, which is our reading.
- Keep Lead Source for your existing channels. Our recommendation: put the ChatGPT detail in the custom fields, so edits to the Lead Source list do not erase it from your CRM leads.
- Link the lead to a campaign if you run one. The article on associating a Web-to-Lead with a campaign (published August 2026) says to add the Campaign ID and the member status as hidden fields. Otherwise, leads without a member status are not associated.
However, we found no Salesforce page that classifies a ChatGPT click as an AI source, so Salesforce knows only what the form passes. We read the documentation and did not open an org or test the form.
What about Pipedrive?
In Pipedrive, the source fields describe the tool that added the record, not the click. According to the lead source page (updated September 2026), Source channel is the sales or marketing tool that added the data. In addition, the page says users can edit it on individual records. However, it does not mention UTM, and the Web Forms article we read does not mention hidden fields.
So we cannot confirm that a Pipedrive form fills the UTM on its own. Our recommendation: to attribute leads there, send the hidden-field values from your form tool into your own custom fields and keep Source channel for the tool. Also, we did not open an account or test the flow.
What is the margin of error of this attribution?
We found no source that publishes a margin of error for attributing leads to AI assistants. Without that number, report a confirmed minimum and a gray zone. Our recommendation: the minimum adds the leads tracked as AI or declared as AI. The gray zone adds the CRM leads that sit in Direct, in Unknown or with no answer, and that may or may not have come from AI.
For example, imagine a month with fictitious numbers that are nobody’s data: the CRM receives 100 leads. Six arrive tracked as AI. Among the other 94, five declare an AI. So the minimum is 11 of 100. Another 40 leads sit in Direct or have no answer. So the report says “at least 11% came from AI, and 40% of the leads have no reliable source.” Don’t spread the gray zone across the channels.
What makes the number wrong?
The main causes of error move the number in different directions:
- Ad blocker or declined cookies: the source may vanish. HubSpot’s documentation says an ad blocker can block its tracking cookies.
- First page x submission session: the hidden field and GA4 can differ, as the guide to measuring blog leads shows.
- Customer memory: the declared answer may differ from the tracked click.
- Test and team leads: they inflate the total. See how to exclude internal traffic in GA4 and delete the test leads.
To attribute leads over time, compare only closed months with the same rule, because changing the rule midway breaks the series. To find which post opened the lead’s visit, cross the entry_page field with the guide to which blog posts generate leads.
Main sources
- Google Analytics, default channel group definitions.
- Google Analytics, campaign data collection with UTM.
- Cloudflare, AI crawl-to-referral ratio on Radar (2025).
- HubSpot, original and latest traffic source properties (2026).
- HubSpot, traffic sources in the web traffic analysis tool (2026).
- HubSpot, hidden fields in forms (2026).
- Salesforce, passing hidden parameters in Web-to-Lead (2026).
- Pipedrive, lead source fields in deals (2026).



