ga4-ailisted
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