# 7 Engineering Patterns for Measuring Traffic From AI Search and Chat Tools

DevFeed: [7 Engineering Patterns for Measuring Traffic From AI Search and Chat Tools](<https://devfeed.tech/articles/7-engineering-patterns-for-measuring-traffic-from-ai-search-and-chat-tools-99059.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/7-engineering-patterns-for-measuring-traffic-from-ai-search-and-chat-tools/>)

Author: SitePoint Team

Published: 2026-10-24T18:29:15Z

Content type: article

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [data-engineering](<https://devfeed.tech/topics/data-engineering.md>), [Google Analytics](<https://devfeed.tech/topics/google-analytics.md>), [Instrumentation](<https://devfeed.tech/topics/instrumentation.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [about](<https://devfeed.tech/tags/about.md>), [advice](<https://devfeed.tech/tags/advice.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-answers](<https://devfeed.tech/tags/ai-answers.md>), [ai-search](<https://devfeed.tech/tags/ai-search.md>), [ai-tool](<https://devfeed.tech/tags/ai-tool.md>), [all](<https://devfeed.tech/tags/all.md>), [also](<https://devfeed.tech/tags/also.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [answer-engine-optimization](<https://devfeed.tech/tags/answer-engine-optimization.md>), [chat](<https://devfeed.tech/tags/chat.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [measuring](<https://devfeed.tech/tags/measuring.md>), [null](<https://devfeed.tech/tags/null.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [search](<https://devfeed.tech/tags/search.md>), [seo-sem](<https://devfeed.tech/tags/seo-sem.md>), [tools](<https://devfeed.tech/tags/tools.md>), [traffic](<https://devfeed.tech/tags/traffic.md>)

## AI overview

Measuring visits from AI tools depends on honest attribution: define the questions first, use explicit UTM tags where you control links, and classify other visits from referrer hostnames. The sample JavaScript classifier prioritizes campaign tags, matches known AI domains with exact or subdomain checks, and labels missing referrers as direct or unknown. Keep the rules auditable and update the domain list as tools change; retain raw inputs only long enough to audit or reclassify, and avoid full IP addresses or fingerprints. Referrers often reveal only a domain, some visits have none, AI answers may be read without clicks, and Search Console groups AI feature clicks with other web results, so reported counts are incomplete. The excerpt also recommends pairing traffic measurement with independently checked specialist advice when explaining AI answer visibility.

## Source excerpt

null Continue reading 7 Engineering Patterns for Measuring Traffic From AI Search and Chat Tools on SitePoint.