> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iqrush.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a Google Analytics snapshot

> Read the latest stored website snapshot and available history.

Read the latest stored website snapshot and available history.

**MCP tool:** `get_ga4_report`. **Operation:** read. Uses the authorized connection; no project or content changes are made by this tool.

## Parameters

| Name | Type | Required | Default | Meaning and accepted values |
| - | - | - | - | - |
| `project_id` | string | Yes | `Required` | Project ID from list\_projects. Select the project in the intended workspace and environment. |
| `limit` | integer or null | No | `null` | Maximum snapshots retrieved in total: the newest appears in latest and the remaining snapshots in history. Overlapping windows must not be summed. |

## Example call

Replace ID placeholders and example selections with values from your account. This is the `params` object for MCP `tools/call`.

```json theme={null}
{
  "name": "get_ga4_report",
  "arguments": {
    "project_id": "PROJECT_ID",
    "limit": 6
  }
}
```

## Read the response

Returns `linked`, `latest`, and `history`. Snapshots can include sessions, users, pageviews, conversions, revenue, channels, and fetched/date information.

### Fields to use

These selected fields explain the example and the result to preserve. Field presence depends on the response; this is not a complete response schema.

| Field | Meaning and use |
| - | - |
| `linked` | Whether a property link exists. |
| `latest` | Most recent stored snapshot, or null when none is available. |
| `history` | Older snapshots within the requested limit. Their windows can overlap, so their totals must not be added together. |

## Response example

Selected fields from an observed IQRush Dev response. Lists are shortened and project/run IDs are placeholders. Omitted fields remain available in the actual response.

```json theme={null}
{
  "project_id": "PROJECT_ID",
  "linked": false,
  "latest": null,
  "history": []
}
```

This observed example has no linked Google property. It demonstrates the unavailable-integration response; it is not a zero-traffic report.

### Fields when linked data is available

The Dev handler defines the fields below for populated responses. They are not populated in the unlinked example shown here.

| Field | Meaning and use |
| - | - |
| `latest.date_start` | Start date of the newest returned snapshot. |
| `latest.date_end` | End date of that snapshot. |
| `latest.fetched_at` | When the snapshot was fetched; separate from the reporting period. |
| `latest.sessions` | Sessions for the snapshot window. |
| `latest.bounce_rate` | Bounce rate on a 0–1 scale. |
| `latest.avg_session_sec` | Average session duration in seconds. |
| `latest.channels` | Channel breakdown for the snapshot. |
| `latest.ai_traffic` | AI referral source/medium rows for the snapshot. |

## Important behavior

This is periodically ingested data, not live analytics. A missing snapshot is not a zero-traffic result.

Check tool and payload errors before using the result. [Response handling](/developers/guides/09-responses-and-metrics) explains estimates and empty results; [errors and recovery](/developers/guides/13-errors) covers invalid requests and temporary failures.

HTTP equivalent: [Read a Google Analytics snapshot](/developers/http/http-get-ga4-report). HTTP parameters and defaults can differ.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.