{
  "title": "AI referral source-rule test, November 23, 2026",
  "kind": "synthetic string-level test fixtures; not GA4 observations",
  "retrieved_at": "2026-11-23T10:47:16.194483+00:00",
  "scope": "Tests these literal patterns against designed strings using full-match and substring semantics; does not emulate GA4, native classification, traffic, attribution or vendor verification.",
  "google_example": {
    "url": "https://support.google.com/analytics/answer/13051316?hl=en",
    "pattern": "^.*ai|.*\\.openai.*|.*chatgpt.*|.*gemini.*|.*gpt.*|.*copilot.*|.*perplexity.*|.*google.*bard.*|.*bard.*google.*|.*bard.*|.*.*gemini.*google.*$",
    "source_html_sha256": "da37ec10985bd9b24afca8241c95a60429563c18eeee7f096cf648ca4cda79b7",
    "meaning": "Illustrative custom-channel example, not the native AI Assistant referrer roster."
  },
  "proposed_source_pattern": "^(chatgpt\\.com|chat\\.openai\\.com|perplexity\\.ai|claude\\.ai|gemini\\.google\\.com|bard\\.google\\.com|copilot\\.microsoft\\.com|deepseek\\.com|chat\\.deepseek\\.com|grok\\.com|meta\\.ai|you\\.com)$",
  "cases": [
    {
      "source": "chatgpt.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "chat.openai.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "perplexity.ai",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "claude.ai",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "gemini.google.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "bard.google.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "copilot.microsoft.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "deepseek.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "chat.deepseek.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "grok.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "meta.ai",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "you.com",
      "allowlist_expected": true,
      "reason": "Exact member of this guide's proposed source roster.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "notchatgpt.com",
      "allowlist_expected": false,
      "reason": "Contains a product name but is not the allowed domain.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "chatgpt.com.example",
      "allowlist_expected": false,
      "reason": "An allowed hostname followed by another domain is not an exact match.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "retail.openai.example",
      "allowlist_expected": false,
      "reason": "Contains openai in a different hostname.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "company-gpt.example",
      "allowlist_expected": false,
      "reason": "Contains gpt but is not an allowed source.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "perplexity.example",
      "allowlist_expected": false,
      "reason": "Contains a product name on a different domain.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "gemini.example",
      "allowlist_expected": false,
      "reason": "Contains a product name on a different domain.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "assistant.ai",
      "allowlist_expected": false,
      "reason": "An ai suffix is not a vendor identity.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "openai.com",
      "allowlist_expected": false,
      "reason": "The company domain is not automatically a ChatGPT referral.",
      "google_example_full_match": false,
      "google_example_search_match": true
    },
    {
      "source": "bing.com",
      "allowlist_expected": false,
      "reason": "The source alone does not distinguish Copilot from other Bing visits.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "x.com",
      "allowlist_expected": false,
      "reason": "The source alone does not distinguish Grok from other X visits.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "google",
      "allowlist_expected": false,
      "reason": "The source alone does not distinguish AI search from other Google search.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "(direct)",
      "allowlist_expected": false,
      "reason": "No assistant source is established.",
      "google_example_full_match": false,
      "google_example_search_match": false
    },
    {
      "source": "openai",
      "allowlist_expected": false,
      "reason": "A campaign-source alias needs separate verification; it is not a domain.",
      "google_example_full_match": true,
      "google_example_search_match": true
    },
    {
      "source": "https://chatgpt.com/?x=1",
      "allowlist_expected": false,
      "reason": "A full URL is not the source-domain field this rule is written for.",
      "google_example_full_match": true,
      "google_example_search_match": true
    }
  ],
  "reproduce": "node --test scripts/__tests__/ai-referral-rule-fixtures.test.mjs",
  "google_native_channel": "not tested; unknown per fixture",
  "notes": [
    "All strings are designed examples, not observed referrers or claims about the owners of example hostnames.",
    "Matching a source string is a classification rule, not authentication of an assistant visit.",
    "Campaign aliases require a separate rule and retained click-path evidence.",
    "A documented example matching a designed string is not a measured false-positive rate in any property."
  ]
}
