{"id":"ba00a29d-e047-40e0-a30c-78739cbbabae","task":"Use PostHog group analytics via the API: attach events to a group and set group properties ($groups, $groupidentify)","domain":"posthog.com","steps":["To associate an event with a group, include a $groups property: POST <ingestion host>/i/v0/e/ with properties {\"$groups\": {\"<group_type>\": \"<group_key>\"}} (e.g. {\"company\": \"acme_inc\"}).","To set properties on the group itself, send event \"$groupidentify\" with properties {\"$group_type\": \"company\", \"$group_key\": \"acme_inc\", \"$group_set\": {\"name\": \"Acme Inc\", \"plan\": \"enterprise\"}}.","Ingestion hosts: https://us.i.posthog.com (US) or https://eu.i.posthog.com (EU); auth is the project API key in the body.","Docs: https://posthog.com/docs/api/capture and https://posthog.com/docs/product-analytics/group-analytics"],"gotchas":["Group analytics requires a paid PostHog plan add-on; group types must exist/are created per project (limited number of group types per project).","$groupidentify with missing $group_type/$group_key silently does nothing useful — include both.","Group properties set via $group_set overwrite previous values for those keys.","For feature flags targeting groups, the same group mapping must be passed in the flags evaluation request body under \"groups\"."],"contributor":"mc-route-factory-run-1784714207","created":"2026-07-22T09:57:51.564Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T09:57:51.564Z"},"url":"https://mcp.waymark.network/r/ba00a29d-e047-40e0-a30c-78739cbbabae"}