Answer engine optimization · Measurement

AI search attribution for B2B SaaS

AI search attribution is the work of connecting what ChatGPT, Perplexity, Gemini and Google's AI answers say about you to the leads and pipeline in your CRM. No single data source does it, so this guide shows how to combine three and report the result honestly.

AI search attribution is the work of connecting your visibility in AI answers to leads and pipeline. For B2B SaaS, it means combining three partial data sources (AI referral traffic, self-reported attribution and prompt tracking) and joining them to opportunities in HubSpot or Salesforce, because no single source sees the whole picture.

Put simply: you want to be able to say, with honest caveats, how much pipeline AI search touched last quarter and whether that’s growing.

This is one of the most common questions I hear on client and prospect calls, usually from a marketing leader who has been asked by the CEO what all this AI search work is producing. It builds on measuring visibility in AI search, which covers the visibility side. This page covers the revenue side.

Why AI search breaks normal attribution

AI search breaks normal attribution because the moment of influence and the moment of conversion are usually separate, and the first one often leaves no trace. A buyer asks ChatGPT for the best tools in your category, reads an answer that names you and closes the tab. A week later they type your URL or search your brand name, then request a demo.

Software attribution sees that as direct traffic or branded search. The AI answer that put you on the shortlist gets no credit.

Three things make this worse than older dark-funnel problems:

  • Fewer clicks. Pew Research Center found Google users who saw an AI summary clicked a traditional result in 8% of visits, compared with 15% when no summary appeared. More of the research happens without a visit.
  • Google’s AI features blend into organic. GA4’s AI Assistant channel excludes AI Overviews and AI Mode, so clicks from those still look like ordinary organic search.
  • Answers vary. Two buyers asking the same question can get different answers, so there’s no fixed “ranking” to tie a lead to.

None of this means AI search can’t be measured. It means you measure it the way good B2B teams already measure podcasts, communities and word of mouth: with several imperfect sources that point the same way.

The three data sources to combine

You need three sources because each one catches a different kind of buyer. Referral data catches people who click. Self-reported answers catch people who don’t. Prompt tracking shows whether your visibility is rising before either of the other two moves.

SourceWhat it catchesWhat it missesWhere it lives
AI referral trafficVisits that click through from ChatGPT, Perplexity, Gemini, Copilot and similar toolsBuyers who read and leave; clicks from Google’s AI featuresGA4, HubSpot, hidden form fields
Self-reported attributionBuyers who remember where they heard of you, including AI toolsPeople who don’t remember or skip the fieldForm field on the lead record
Prompt trackingWhether you’re mentioned and cited for a fixed set of buyer promptsAnything about revenue directlyTracking tool or spreadsheet

Platform data adds a fourth, supporting layer. Google’s AI features documentation describes Search Console reporting on how people find your content through AI Overviews and AI Mode, including impression share for query groups. Microsoft’s AI Performance report in Bing Webmaster Tools, launched in February 2026, shows how often your pages are cited across Copilot and Bing’s AI summaries, and a June 2026 update added citation share and topic views.

For the step-by-step configuration of each source, see the AI search tracking setup guide.

AI referral traffic

AI referral traffic is the easiest source to collect and the most incomplete. Google Analytics 4 now groups visits from sources like ChatGPT, Gemini, Deepseek, Copilot and Grok into an AI Assistant default channel. Use it to see which pages AI tools send people to and how those visitors convert.

The limit is that GA4 data stays in GA4. To get it into the CRM, the source has to be captured on the lead at the moment of conversion, which is where HubSpot and hidden fields come in.

Self-reported attribution

Self-reported attribution is a “How did you hear about us?” field on your demo, contact and trial forms. Make it open text, not a dropdown, and make it required on high-intent forms. Dropdowns anchor people to your list of options; open text surfaces answers like “asked ChatGPT for SOC 2 tools” or “Perplexity comparison”.

Code the answers monthly into a small set of categories, with “AI assistant” as one of them. It’s manual, but it’s usually the single most revealing data source in this whole setup.

Prompt tracking

Prompt tracking means running the same set of buyer prompts across ChatGPT, Perplexity, Gemini and Google’s AI features on a schedule, and recording whether you’re mentioned, whether you’re cited and how you’re described. It’s the leading indicator: visibility usually moves before referral traffic and self-reported mentions do.

Keep the set stable and split it by intent: category prompts (“best X software”), comparison prompts (“X vs Y”) and problem prompts (“how do I fix Z”). There are plenty of tools for this; I’ve compared the main ones in AEO tools compared. For a quick first read, our free AI visibility checker shows how AI tools describe your brand today.

HubSpot setup

HubSpot is the simpler of the two CRMs for AI search attribution because it classifies AI traffic out of the box. Its traffic source properties include an AI Referrals category, with the AI platform’s domain (for example chatgpt.com or claude.ai) as the first drill-down.

The setup I use:

  1. Confirm the tracking code is on every page with a form, including landing pages built outside HubSpot.
  2. Use Original Traffic Source and Latest Traffic Source. Original tells you how a contact first found you; latest tells you what brought them back before converting. AI Referrals can appear in either.
  3. Add the self-reported field as a contact property and on every high-intent form. Keep it open text.
  4. Create a coded property (for example “Self-reported source category”) and fill it monthly from the open-text answers, with “AI assistant” as one value.
  5. Build an “AI-touched” list of contacts where original source is AI Referrals, latest source is AI Referrals or the coded self-reported category is AI assistant.
  6. Report on deals. Use HubSpot’s attribution reporting or a custom deal report filtered by associated contacts in the AI-touched list, showing pipeline created and closed-won.

Salesforce setup

Salesforce doesn’t classify AI referrals on its own in the setups I’ve worked with, so the source has to be captured on the form and passed in. The approach works whether your forms run through Salesforce Account Engagement, another marketing automation platform or a web-to-lead form.

  1. Add hidden fields to every form for referrer, landing page and UTM (urchin tracking module) parameters, populated by a small script that stores them on first visit.
  2. Create custom lead fields to receive them, plus a field for the self-reported answer and one for its coded category.
  3. Set a rule that marks the lead’s source as AI search when the referrer matches a list of AI platform domains (chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com and others). Keep the list in one place so it’s easy to update.
  4. Use a campaign for AI search and add qualifying leads as campaign members, so campaign influence reporting can include it.
  5. Map the fields on conversion so the AI source and self-reported category carry from lead to contact and opportunity.
  6. Build an opportunity report grouped by AI source and self-reported category, showing pipeline created, win rate and cycle length.

Whichever CRM you use, the rule is the same: if the source isn’t written onto the record at conversion, you can’t recover it later.

A closed-loop report

A closed-loop AI search report puts visibility, traffic, self-reported mentions and pipeline on one page, so leadership can see whether the leading indicators and the revenue indicators move together. Here’s the layout I use:

LayerMetricSource
VisibilityShare of tracked prompts where you’re mentioned, and where you’re cited, by enginePrompt tracking
VisibilityAI feature impressions and citationsSearch Console, Bing Webmaster Tools
TrafficAI referral sessions and conversion rate by landing pageGA4 AI Assistant channel
LeadsNew contacts or leads with an AI sourceHubSpot AI Referrals or Salesforce lead field
LeadsSelf-reported “AI assistant” answersCoded form field
PipelineOpportunities and pipeline with any AI touchCRM opportunity report
PipelineWin rate and sales cycle for AI-touched deals versus all dealsCRM opportunity report

Report it monthly, review it quarterly. Monthly numbers are noisy; a quarter-over-quarter trend is what tells you whether the work is paying off.

For one healthcare software company we work with, the deliverable was exactly this: an AI search dashboard that ties tracked prompts to pipeline. For a financial services technology client, AI search sits inside monthly CRM reporting on MQLs (marketing qualified leads) and new opportunities by source. Neither is precise to the dollar, and neither needs to be.

If you’d rather have this built and run for you, see our AI search visibility reporting or our AEO services.

Common attribution mistakes

The mistakes I see most come from expecting AI search to behave like a paid channel with clean last-click data.

  • Relying on GA4 alone. Referral data misses the buyers who never click, which is most of them.
  • Using a dropdown for “how did you hear about us”. You’ll get the options you listed and nothing else.
  • Not writing the source onto the lead. If the AI source only lives in analytics, sales and finance will never see it.
  • Counting Google AI Overviews as AI referrals. In GA4 those clicks still sit in organic search. Use Search Console for Google’s AI features.
  • Reporting one precise ROI number. It invites a debate you’ll lose. Report ranges and trends, and say they’re directional.
  • Measuring AI search separately from everything else. It belongs in your wider B2B marketing attribution model, next to the other channels it influences.
  • Measuring visibility in AI search: the visibility side of this report.
  • AI search tracking setup: configuring each data source.
  • AEO tools compared: prompt tracking software.

Start with the self-reported field this week. It costs nothing, and in a quarter it will tell you more about AI search than any dashboard.

FAQ

What is AI search attribution?

AI search attribution is the practice of connecting visibility in AI answers, from tools like ChatGPT, Perplexity, Gemini and Google AI Overviews, to leads, opportunities and revenue in your CRM. It combines AI referral traffic, self-reported answers on forms and prompt tracking, because no single source captures how buyers use AI tools.

Can you track leads from ChatGPT?

Partly. Visits that click through from ChatGPT show up in Google Analytics 4's AI Assistant channel and as AI Referrals in HubSpot, and you can store that source on the lead record. Buyers who read an answer and come back later through direct or branded search need a self-reported attribution field to be counted.

How do I see AI referral traffic in GA4?

Google Analytics 4 includes an AI Assistant default channel for visits from sources like ChatGPT, Gemini, Copilot, Deepseek and Grok. It excludes Google's own AI Overviews and AI Mode, which still appear as organic search. Use the channel in acquisition reports, and compare it with landing pages and key events.

Does HubSpot track AI search traffic?

Yes. HubSpot's traffic source properties include an AI Referrals category, with the AI platform's domain, such as chatgpt.com, as the first drill-down. That lets you build lists, reports and deal attribution on contacts whose original or latest source was an AI assistant, alongside your other channels.

How do I track AI search leads in Salesforce?

Capture the referrer and UTM parameters in hidden form fields, map them to custom lead fields and set a lead source or campaign for AI search when the referrer matches an AI platform. Add the self-reported answer as its own field. Carry both onto the opportunity so pipeline reports can group by them.

How accurate is AI search attribution?

It's directional. Referral data misses buyers who never click, self-reported answers depend on memory and prompt tracking samples answers that vary by user and session. Combined, they show a trend you can act on. Present them as ranges and trends in reporting, and avoid single precise ROI claims.