Analysis

Traffic

Visits per UTC day and by referrer, campaign, device class, browser, operating system and visitor type, with goal conversions. Ranges are limited to 92 days and default to the last 30. Automated visits and test visits are left out.

Required token scopes are listed in x-hootlens-scopes. A signed-in person needs the matching permission on the site instead (the viewer and editor roles are presets of the permissions).

get/v1/projects/{projectId}/traffic

Request

  • Base URL: https://hootlens-api-368877148687.us-east1.run.app
  • URL: https://hootlens-api-368877148687.us-east1.run.app/v1/projects/{projectId}/traffic
  • Auth: HTTP bearer

Path parameters

projectIdstring required

An identifier: 1 to 80 letters, digits, underscores or hyphens.

The project ID. Project IDs are public identifiers, not secrets.

Query parameters

frominteger

Start of the range, epoch milliseconds. Counts are daily, so the range covers every UTC day it touches.

tointeger

End of the range, epoch milliseconds. Defaults to now.

groupstring

A page group ID. Counts that group's visits from the page statistics instead of the site-wide counters.

Response

The traffic summary.

frominteger required

Epoch milliseconds.

tointeger required

Epoch milliseconds.

sessionsinteger required
automatedSessionsinteger

Site-wide traffic only.

sourcesCountedFromstring

The first UTC day (YYYY-MM-DD) channels, countries and entry pages are counted. Set when the range starts before it and visits lack them.

Changes

No recorded changes to this operation across all 1 revision of this API.