mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-25 12:01:04 +02:00
fix: align usage event with MPS org-event convention (per-member fan-out)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
6a48207999
commit
41e887ec57
4 changed files with 76 additions and 27 deletions
|
|
@ -8,11 +8,6 @@ from api.constants import POSTHOG_API_KEY, POSTHOG_HOST
|
|||
_posthog_client: Posthog | None = None
|
||||
POSTHOG_SERVER_GROUP_IDENTIFY_DISTINCT_ID = "server-group-identify"
|
||||
POSTHOG_ORGANIZATION_GROUP_TYPE = "organization"
|
||||
# Stable distinct_id for server-originated events with no acting user.
|
||||
# Group-linked events must stay identified (setting $process_person_profile
|
||||
# to False would unlink them from the organization group), so a single shared
|
||||
# "server" person absorbs them instead of minting one person per org.
|
||||
POSTHOG_SERVER_EVENT_DISTINCT_ID = "server"
|
||||
|
||||
|
||||
def get_posthog() -> Posthog | None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue