Outdated: as of May 2026, checked in November 2026
This setup measures clicks where a text fragment (#:~:text=) is appended to the target URL. Since the update in early May 2026, this no longer works for AI Overviews. Google now delivers these links as inline links without a text fragment. Our own check on 5 November 2026 confirms this: the source links in an AI Overview go through a Google redirect to the target page, and none of the links we tested arrived with a text fragment.
Where the setup still applies: for “People Also Ask” and classic Featured Snippets, Google continues to link with a text fragment, so these clicks are still recorded. The instructions below use the event name text_fragment_click for them.
New in GA4: Since 13 May 2026, GA4 automatically reports traffic from AI assistants (ChatGPT, Gemini, Claude, among others) in a separate “AI Assistant” channel within the Default Channel Group, entirely without a specific setup (What’s new in Google Analytics, 13 May 2026). Important: This channel captures chatbot referrals, not Google AI Overviews, which continue to count as Organic Search.
New in Search Console: since 31 August 2026 Google has offered a dedicated generative AI report worldwide. It shows how often your pages were displayed in AI Overviews and AI Mode. It does not include clicks or queries. You can read what the report can do and where its gaps are in our article Search Console now shows AI visibility.
Since Google rolled out AI Overviews in search, the way users reach websites has been changing. AI-generated summaries with further links to external sources appear in the search results. This raises a very practical question for many SEO, content, and analytics teams: How can traffic from Google AI Overviews be made visible in GA4?
There is no direct standard solution for this in Google Analytics 4. Until May 2026, such visits could be tracked with a pragmatic setup in Google Tag Manager. This no longer works for AI Overviews. The following setup still records visits with a text fragment, for example from “People Also Ask” and Featured Snippets. The basis is a so-called text fragment in the URL (#:~:text=). This technique allows browsers to jump directly to a specific point on a page and highlight it. Text fragments are part of the URL fragment, are processed client-side and never reach the server.
This behaviour can be used for tracking: When a user lands on your website via a link with a text fragment, a GTM setup can recognise the passed excerpt and send it as an event to GA4.