Web Analytics
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
POST | |
GET | |
GET | |
POST | |
POST | |
POST |
Create web analytics achievements acknowledge
Clears a pending celebration for the given track and stage once the client has shown it, so it isn't celebrated again. Idempotent.
Request parameters
- track_keystring
- stageinteger
Response
Example request
POST /api /projects /:project_id /web_analytics_achievements /acknowledge_celebrationExample response
Status 200
Retrieve web analytics achievements
Returns the achievement track definitions (thresholds resolved for the requesting user's streak-cadence arm), the user's and team's progress, and any newly unlocked stages awaiting an in-session celebration.
Response
Example request
GET /api /projects /:project_id /web_analytics_achievements /overviewExample response
Status 200
Retrieve web analytics achievements
Returns the requesting user's per-project Web analytics achievements preferences.
Response
Example request
GET /api /projects /:project_id /web_analytics_achievements /preferencesExample response
Status 200
Create web analytics achievements update
Sets the requesting user's per-project Web analytics achievements preferences.
Request parameters
- achievements_opt_outboolean
Response
Example request
POST /api /projects /:project_id /web_analytics_achievements /preferencesExample response
Status 200
Create web analytics achievements record
Idempotently increments the requesting user's first-party counter for an in-product Web analytics interaction (slicing data, or opening a session recording), which drives the Explorer and Detective achievement tracks.
Request parameters
- interaction_kind
Response
Example request
POST /api /projects /:project_id /web_analytics_achievements /record_interactionExample response
Status 200
Create web analytics achievements record
Idempotently records that the requesting user opened Web analytics today (team-local date) and schedules a debounced achievement recompute. Intended to be called once per session.
Response
Example request
POST /api /projects /:project_id /web_analytics_achievements /record_visit