v4

OpenAPI 3.1.02026-07-3196251302.5 KB
analytics

Track a frontend-only analytics event (profile view, search). Frontend API key + logged-in users only.

post/v1/analytics.trackEvent

Headers

X-Forwarded-Forstring
User-Agentstring
X-Visitor-Idstring

Request body

$schemastring uri

A URL to the JSON Schema for this object.

payloadobject required

Per-type fields. profile_view: {accountId}. search: {source, query, resultCount}.

type'profile_view' | 'search' required

Event class. profile_view is normally emitted server-side; this lets the frontend top it up for client-only flows. search captures account/app searches that bypass the backend.

Example request

{
  "$schema": "https://api.steamsets.com/schemas/AnalyticsTrackEventRequestBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

okboolean required

Example response

{
  "$schema": "https://api.steamsets.com/schemas/AnalyticsTrackEventResponseBody.json"
}