---
title: "Log a Page View (and Visit)"
method: POST
path: "/analytics/pageviews"
tags: ["Analytics"]
---

# Log a Page View (and Visit)

`POST /analytics/pageviews`

Records a page view at the current time for a given dashboard, user, etc.

## Request body

- PageViewAnalyticsRecord
  - `date` string, date-time — The date this record was logged.
  - `dashboard` string — The ID of the Dashboard being viewed.
  - `page` string — The current page index (0-indexed).
  - `rev` string — The current revision of the Dashboard.
  - `visitId` string — The current Visit ID: a unique value generated when a Dashboard is opened.
  - `user` string — The ID of a logged-in User. Either this or 'uid' is required.
  - `uid` string — The unique ID for a non-logged-in User. Either this or 'user' is required.
  - `browser` object — An object containing browser information.
  - `ip` string — The IP of the computer logging this record

## Response `200`

Record logged.

## Other responses

- `400` — Missing required information.

---

[API](https://skmtc.dev/expediagroup/apis/cyclotron-api.md) · [All operations](https://skmtc.dev/expediagroup/apis/cyclotron-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expediagroup/cyclotron-api/revisions/18e751e6bc49/schema)
