{
  "reviewedDate": "2026-10-28",
  "scope": "Constructed offline string fixtures for selected assistant hosts. Not a GA4 property test, full assistant taxonomy, native channel simulator, or proof of an AI recommendation.",
  "patterns": {
    "sessionSource": "(?i)^(chatgpt\\.com|chat\\.openai\\.com|perplexity\\.ai|www\\.perplexity\\.ai|gemini\\.google\\.com|copilot\\.microsoft\\.com|claude\\.ai)$",
    "pageReferrer": "(?i)^https?://(chatgpt\\.com|chat\\.openai\\.com|perplexity\\.ai|www\\.perplexity\\.ai|gemini\\.google\\.com|copilot\\.microsoft\\.com|claude\\.ai)([/?#].*)?$"
  },
  "cases": [
    { "field": "sessionSource", "value": "chatgpt.com", "expectedMatch": true, "reason": "Selected exact source host" },
    { "field": "sessionSource", "value": "CHATGPT.COM", "expectedMatch": true, "reason": "Case-insensitive expression" },
    { "field": "sessionSource", "value": "chat.openai.com", "expectedMatch": true, "reason": "Selected legacy source host" },
    { "field": "sessionSource", "value": "perplexity.ai", "expectedMatch": true, "reason": "Selected exact source host" },
    { "field": "sessionSource", "value": "www.perplexity.ai", "expectedMatch": true, "reason": "Explicitly included host variant" },
    { "field": "sessionSource", "value": "gemini.google.com", "expectedMatch": true, "reason": "Specific assistant host, not all Google traffic" },
    { "field": "sessionSource", "value": "copilot.microsoft.com", "expectedMatch": true, "reason": "Specific assistant host, not all Microsoft traffic" },
    { "field": "sessionSource", "value": "claude.ai", "expectedMatch": true, "reason": "Selected exact source host" },
    { "field": "sessionSource", "value": "chatgptXcom", "expectedMatch": false, "reason": "Escaped dot rejects lookalike separator" },
    { "field": "sessionSource", "value": "chatgpt.com.example.org", "expectedMatch": false, "reason": "Anchors reject suffix domain" },
    { "field": "sessionSource", "value": "notchatgpt.com", "expectedMatch": false, "reason": "Anchors reject prefix domain" },
    { "field": "sessionSource", "value": "openai.com", "expectedMatch": false, "reason": "Operator website is not included as an assistant source" },
    { "field": "sessionSource", "value": "google", "expectedMatch": false, "reason": "Cannot isolate AI Overviews or AI Mode from Google organic source" },
    { "field": "sessionSource", "value": "microsoft.com", "expectedMatch": false, "reason": "Broad operator domain is excluded" },
    { "field": "sessionSource", "value": "bing.com/chat", "expectedMatch": false, "reason": "URL path is not an exact selected source host" },
    { "field": "sessionSource", "value": "https://chatgpt.com/", "expectedMatch": false, "reason": "URL-shaped input belongs in the referrer expression" },
    { "field": "sessionSource", "value": "(direct)", "expectedMatch": false, "reason": "No assistant evidence in source field" },
    { "field": "sessionSource", "value": "", "expectedMatch": false, "reason": "Missing source is unknown, not an inferred assistant visit" },
    { "field": "pageReferrer", "value": "https://chatgpt.com", "expectedMatch": true, "reason": "Origin-only URL" },
    { "field": "pageReferrer", "value": "https://chatgpt.com/c/example", "expectedMatch": true, "reason": "Path follows selected host boundary" },
    { "field": "pageReferrer", "value": "https://chatgpt.com/?x=1", "expectedMatch": true, "reason": "Query follows selected host boundary" },
    { "field": "pageReferrer", "value": "https://CHATGPT.COM/", "expectedMatch": true, "reason": "Case-insensitive expression" },
    { "field": "pageReferrer", "value": "https://www.perplexity.ai/", "expectedMatch": true, "reason": "Explicitly included host variant" },
    { "field": "pageReferrer", "value": "https://gemini.google.com/", "expectedMatch": true, "reason": "Selected assistant host" },
    { "field": "pageReferrer", "value": "https://chatgpt.com.example.org/", "expectedMatch": false, "reason": "Host boundary rejects suffix domain" },
    { "field": "pageReferrer", "value": "https://chatgpt.com@example.org/", "expectedMatch": false, "reason": "Username is not the referrer host" },
    { "field": "pageReferrer", "value": "https://example.org/?from=chatgpt.com", "expectedMatch": false, "reason": "Query-string text is not the referrer host" },
    { "field": "pageReferrer", "value": "https://www.google.com/", "expectedMatch": false, "reason": "Google organic referrer cannot isolate AI features" },
    { "field": "pageReferrer", "value": "https://openai.com/", "expectedMatch": false, "reason": "Operator website excluded" },
    { "field": "pageReferrer", "value": "https://webaloha.co/contact/", "expectedMatch": false, "reason": "Internal navigation is not assistant acquisition" },
    { "field": "pageReferrer", "value": "chatgpt.com", "expectedMatch": false, "reason": "Host-only input belongs in the source expression" },
    { "field": "pageReferrer", "value": "", "expectedMatch": false, "reason": "No referrer cannot be classified by a URL expression" }
  ]
}
