Интеграции · Чтение
Google · Аналитика
google_analytics
Попробуйте три запроса
Получить данные
- Вы указываетеСайт
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Google / Аналитика» выполни чтение по выбранной записи (сайт). Выведи кратко: результат.
- result
- Результат
Задать параметры
- Вы указываетеСайт
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Google / Аналитика» на учебном примере с operation = status. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- operation
- status
- siteId
- DEMO-101
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Google / Аналитика» объясни результат. Отметь отсутствующие значения.
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read company-authorized GA4 status, realtime users or aggregated reports for a bound Site using the existing Google OAuth connection. Site configuration belongs to Site MCP. Missing analytics.readonly scope returns an incremental authorization URL. Tokens and Measurement Protocol secrets stay server-side.
Параметры запроса
- operation
- Выберите вариант операции из контракта. обязательно по схеме · string · варианты status, realtime, report
- siteId
- Exact company-bound Site ID. обязательно по схеме · string
- connectionId
- Existing authorized Google connection ID. необязательно · string
- startDate
- Inclusive report start date in YYYY-MM-DD format. необязательно · string
- endDate
- Inclusive report end date in YYYY-MM-DD format. необязательно · string
- metrics
- Requested GA4 metrics. необязательно · array · до элементов 12
- dimensions
- Requested GA4 dimensions. необязательно · array · до элементов 5
- rowLimit
- Maximum report rows. необязательно · integer · минимум 1 · максимум 1000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- result
- Company-scoped native GA4 result without provider credentials. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"operation": {
"type": "string",
"enum": [
"status",
"realtime",
"report"
],
"description": "Native GA4 status, realtime or report operation."
},
"siteId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Exact company-bound Site ID."
},
"connectionId": {
"description": "Existing authorized Google connection ID.",
"type": "string",
"pattern": "^(google_business|gsv_[a-f0-9]{24})$"
},
"startDate": {
"description": "Inclusive report start date in YYYY-MM-DD format.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"endDate": {
"description": "Inclusive report end date in YYYY-MM-DD format.",
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"metrics": {
"description": "Requested GA4 metrics.",
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"enum": [
"totalUsers",
"sessions",
"engagedSessions",
"engagementRate",
"eventCount",
"keyEvents",
"itemsViewed",
"addToCarts",
"checkouts",
"ecommercePurchases",
"purchaseRevenue",
"totalRevenue"
]
}
},
"dimensions": {
"description": "Requested GA4 dimensions.",
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"enum": [
"date",
"sessionSource",
"sessionMedium",
"sessionCampaignName",
"sessionCampaignId",
"landingPage",
"pagePath",
"deviceCategory",
"country",
"region"
]
}
},
"rowLimit": {
"description": "Maximum report rows.",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable request ID for this exact operation."
}
},
"required": [
"operation",
"siteId",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Company-scoped native GA4 result without provider credentials."
}
},
"required": [
"result"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
}
}
]
}
}
}