ga_get_realtime

Pack: google_analytics · Endpoint: https://gateway.pipeworx.io/google_analytics/mcp

Check live user activity in a GA4 property right now. Returns current active user count and real-time engagement metrics. Specify property ID (e.g., “123456789”).

Parameters

NameTypeRequiredDescription
property_idstringyesGA4 property ID (numeric)
dimensionsarraynoRealtime dimensions (e.g., [“city”, “unifiedScreenName”, “platform”])
itemsstringno
metricsarraynoRealtime metrics (e.g., [“activeUsers”, “screenPageViews”]). Defaults to [“activeUsers”].
itemsstringno
limitnumbernoMaximum number of rows (default 100)

Example call

Arguments

{
  "property_id": "123456789"
}

curl

curl -X POST https://gateway.pipeworx.io/google_analytics/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ga_get_realtime","arguments":{"property_id":"123456789"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('ga_get_realtime', {
  "property_id": "123456789"
});

More examples

{
  "property_id": "123456789",
  "dimensions": [
    "city",
    "platform"
  ],
  "metrics": [
    "activeUsers",
    "screenPageViews"
  ],
  "limit": 50
}

Response shape

FieldTypeDescription
dimensionHeadersarrayRealtime dimension headers
metricHeadersarrayRealtime metric headers with types
rowsarrayRealtime data rows
totalActiveUsersstringTotal active users in realtime
rowCountnumberNumber of rows returned
errorstringError message if connection failed
messagestringError details if connection failed
Full JSON Schema
{
  "type": "object",
  "properties": {
    "dimensionHeaders": {
      "type": "array",
      "description": "Realtime dimension headers",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Dimension name"
          }
        }
      }
    },
    "metricHeaders": {
      "type": "array",
      "description": "Realtime metric headers with types",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Metric name"
          },
          "type": {
            "type": "string",
            "description": "Metric data type"
          }
        }
      }
    },
    "rows": {
      "type": "array",
      "description": "Realtime data rows",
      "items": {
        "type": "object",
        "properties": {
          "dimensionValues": {
            "type": "array",
            "description": "Dimension values for this row",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Dimension value"
                }
              }
            }
          },
          "metricValues": {
            "type": "array",
            "description": "Metric values for this row",
            "items": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string",
                  "description": "Metric value"
                }
              }
            }
          }
        }
      }
    },
    "totalActiveUsers": {
      "type": "string",
      "description": "Total active users in realtime"
    },
    "rowCount": {
      "type": "number",
      "description": "Number of rows returned"
    },
    "error": {
      "type": "string",
      "description": "Error message if connection failed"
    },
    "message": {
      "type": "string",
      "description": "Error details if connection failed"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "google_analytics": {
      "url": "https://gateway.pipeworx.io/google_analytics/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026