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
dimensionHeadersarrayHeaders for realtime dimension columns
metricHeadersarrayHeaders for realtime metric columns
rowsarrayReal-time data rows with current engagement metrics
totalsForAllRowsarrayTotal values across all rows
rowCountnumberNumber of rows returned
kindstringAPI response kind identifier
errorstringError code if connection not established
messagestringError message if connection not established
Full JSON Schema
{
  "type": "object",
  "properties": {
    "dimensionHeaders": {
      "type": "array",
      "description": "Headers for realtime dimension columns",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Dimension name"
          }
        }
      }
    },
    "metricHeaders": {
      "type": "array",
      "description": "Headers for realtime metric columns",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Metric name"
          },
          "type": {
            "type": "string",
            "description": "Data type of metric"
          }
        }
      }
    },
    "rows": {
      "type": "array",
      "description": "Real-time data rows with current engagement metrics",
      "items": {
        "type": "object",
        "properties": {
          "dimensionValues": {
            "type": "array",
            "description": "Dimension values for this row",
            "items": {
              "type": "object"
            }
          },
          "metricValues": {
            "type": "array",
            "description": "Metric values for this row",
            "items": {
              "type": "object"
            }
          }
        }
      }
    },
    "totalsForAllRows": {
      "type": "array",
      "description": "Total values across all rows",
      "items": {
        "type": "object"
      }
    },
    "rowCount": {
      "type": "number",
      "description": "Number of rows returned"
    },
    "kind": {
      "type": "string",
      "description": "API response kind identifier"
    },
    "error": {
      "type": "string",
      "description": "Error code if connection not established"
    },
    "message": {
      "type": "string",
      "description": "Error message if connection not established"
    }
  }
}

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 June 24, 2026