← Files Windsor.aiARCHIVED FILE

skills/google-analytics-4/SKILL.md

4.2 KB · Nov 28, 2026 · 06:11 UTC

↓ Download file

---
name: google-analytics-4
description: "Analyze Google Analytics 4 (GA4) data through Windsor.ai. Use when the user asks about their GA4 website or app analytics: sessions, users, new users, engagement, conversions/key events, bounce/engagement rate, pageviews, or breakdowns by channel, source/medium, campaign, landing page, device, country, or date. For spend and ROAS as reported by each ad platform, use the ad-platform connectors (GA4 only has cost for linked Google Ads accounts and imported cost data). Do not use for other analytics products, or changing GA4 settings. Also use when the user asks how to connect Google Analytics 4 (GA4) to ChatGPT."
---

Explicit instructions from the user take priority over this skill.

# Google Analytics 4 (GA4) via Windsor.ai

Windsor.ai pulls live **read-only** GA4 report data through the Google Analytics
Data API. The connector id is `googleanalytics4`. Pass `googleanalytics4` as the connector on every tool call; the Windsor.ai server
serves all connectors, so it is never implied.

This connector is **read-only analytics**: it reports GA4 metrics and dimensions.
Ad cost is only available for linked Google Ads accounts and imported cost
data (`advertiser_ad_cost`, `advertiser_ad_cost_per_key_event`,
`return_on_ad_spend`); spend from other platforms lives in their ad
connectors. It does **not** change any GA4 setting; there are no write
actions. If asked to create a conversion event, change settings, or
spend data, say that's out of scope here.

Golden rules:

- **Never guess field, property, or option names**; get them from `get_fields`,
  `get_connectors`, and `get_options`. Call those first; GA4 has many
  dimensions and metrics with exact API ids.
- Read-only connector; there are no live write actions to run.
- Report what the user asked for, concisely.

## 1. Check what is connected

Call `get_connectors` to see which GA4 properties are connected (each has an id
and usually a name). If none is connected, help the user connect:
`get_connector_authorization_url` (or `get_connector_connect_info` for the auth
type and steps) and give them the setup link; don't describe manual dashboard
navigation. If several properties are connected and the request is ambiguous,
ask which one.

## 2. Reading GA4 data

1. Call `get_fields` for `googleanalytics4` to get valid field ids. GA4 splits
   into **dimensions** (e.g. date, `session_default_channel_group`, source/medium,
   campaign, landing page, devicecategory, country) and **metrics** (e.g.
   sessions, active users, `conversions` (key events), engagement
   rate, bounce rate, pageviews, average session duration, event count,
   revenue). Use the exact ids returned, not these examples.
2. If the analysis needs specific controls, call `get_options` for the
   connector's options and valid values.
3. Call `get_data` with the `fields` you need (a mix of dimensions and metrics),
   the target property/account id(s) in `accounts`, and a date range; `date_from`/`date_to`
   (`"2026-02-01"`) or a `date_preset` like `last_7d`, `last_30d`, `this_month`,
   `last_year` (append `T` to include today). Add `filters` for conditions.

Common requests → recipe:

- **Traffic overview / trend:** `date` + sessions/users over a preset range.
- **By channel:** `session_default_channel_group` + sessions/conversions; rank in
  your answer.
- **Top source or campaign:** the source/medium or campaign dimension + the
  metric, then rank; return only what the user asked for (e.g. just the channel
  name) if they constrained the output.
- **Conversions:** GA4 "conversions" are key events. Cost-per-conversion or ROAS
  use `advertiser_ad_cost` for linked Google Ads and imported cost; for other
  platforms, join spend from their ad connector and say the numbers come from
  two sources.

Watch out: GA4 sampling/thresholding and property timezone can shift numbers;
metric availability depends on the property. If a field the user wants isn't in
`get_fields`, say so rather than substituting a different metric.

## 3. Reference real data, don't fabricate

On an error (unknown field/connector/property), call the relevant discovery tool
and retry with correct ids, or report the specific error. Never invent session
counts, conversion numbers, channel names, or property ids.

SHA-256: 074c357e33ec84f993ab8a1ce63680d5b4a66652b028dda4173f5a46bc990f7f