---
title: "Get public browser analytics configuration"
method: GET
path: "/api/analytics/config"
---

# Get public browser analytics configuration

`GET /api/analytics/config`

## Request

- Base URL: `https://www.toma.com`
- URL: `https://www.toma.com/api/analytics/config`
- Auth: none required

Returns the public PostHog project token, ingestion host, the same-origin path the browser sends events to, environment, configured server hostname, Google Ads tag ID and Google Analytics measurement ID when set, or null when disabled. Browser analytics and replay start by default unless the visitor has turned them off. No personal API keys or secrets are returned.

## Response `200`

Public analytics configuration, or null.

- object, nullable
  - `token` string, required
  - `host` string, required
  - `apiHost` string, required
  - `environment` string, required
  - `serverHost` string
  - `googleAdsTagId` string
  - `googleAnalyticsMeasurementId` string

---

[API](https://skmtc.dev/toma/apis/toma-api.md) - [All operations](https://skmtc.dev/toma/apis/toma-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toma/apis/toma-api/revisions/b4e56e1db5a2?raw)
