---
title: "Save Ga Selection"
method: PUT
path: "/ga/selection"
tags: ["google-analytics"]
---

# Save Ga Selection

`PUT /ga/selection`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/ga/selection`
- Auth: API key in header `X-Agent-Key`

Validate and persist the exact GA4 property and data stream to report.

## Query parameters

- `email` string, required: Signed-in user email
- `site_id` string, required: Site UUID

## Request body

- GaSelectionRequest
  - `property_id` string, required
  - `data_stream_id` string, required
  - `confirm_mismatch` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
