provider web_analytics_achievements POST /api/projects/{project_id}/web_analytics_achievements/record_interaction/
@utdk/posthog /api/projects/{project_id}/web_analytics_achievements/record_interaction/
Record a Web analytics interaction
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.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
webAnalyticsAchievementsRecordInteraction
POST/api/projects/{project_id}/web_analytics_achievements/record_interaction/
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.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Which interaction counter to increment: 'data' (slicing/filtering the dashboard) or 'recording' (opening a session recording). * `data` - data * `recording` - recording

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.webAnalyticsAchievementsRecordInteraction()