← ClaudeAtlas

ga4-ailisted

Measure visits from AI assistants (ChatGPT, Perplexity, Copilot, Gemini, Claude) in Google Analytics 4: run the ga4-ai command (sessions and key events by session source and landing page), build a custom 'AI assistants' channel group, apply GA4's full-match regex rule correctly, use utm_source=chatgpt.com as OpenAI documents, and explain why Direct traffic undercounts. Use when the user asks 'how much traffic comes from ChatGPT', 'set up AI traffic in GA4', 'AI referrals in Analytics', 'GA4 regex for ChatGPT', 'custom channel group for AI', or 'why is my AI traffic so low'. Requires the user's own read-only GA4 access.
sitetiller/ai-visibility-skills · ★ 0 · AI & Automation · score 75
Install: claude install-skill sitetiller/ai-visibility-skills
# AI assistant visits in GA4 Goal: a trustworthy count of sessions that clicked through from an AI assistant, by landing page, plus a permanent "AI assistants" channel in GA4. The count is a floor, not the total. ## Inputs - GA4 property id (numeric, from Admin, Property details) and read access. Credentials are set as described in the `setup` skill: a service account key or access token in the environment, never pasted into chat. - Start and end dates, `YYYY-MM-DD`. ## Steps 1. Run the report: ```bash npx sitetiller ga4-ai 123456789 --start 2026-10-01 --end 2026-10-31 --json ``` Output: an array, possibly empty, of `{source, landingPage, sessions, keyEvents}`. There is no date column, so run one command per period and keep each file. The query is a GA4 Data API `runReport` with dimensions `sessionSource` and `landingPage`, metrics `sessions` and `keyEvents`, up to 1,000 rows, filtered with a `FULL_REGEXP` on `sessionSource`: ``` .*(chatgpt\.com|chat\.openai\.com|perplexity\.ai|copilot\.microsoft\.com|gemini\.google\.com|claude\.ai).* ``` An empty array means no session source matched in that window, or the property has no such traffic; check the dates and property id before concluding anything. 2. Group by `source`, then by `landingPage`. Sum `sessions` and `keyEvents`. `keyEvents` counts whatever the user marked as a key event; ask which events those are before calling it conversions. 3. Add other assistants you see in GA4's own Traffic acquisitio