PostHog / posthog

🦔 PostHog provides open-source web & product analytics, session recording, feature flagging and A/B testing that you can self-host. Get started - free.
https://posthog.com
Other
22.36k stars 1.35k forks source link

Bug: sometimes exports seem to use default distinct_id even if there is a user-defined distinct_id #25058

Open abigailbramble opened 2 months ago

abigailbramble commented 2 months ago

Bug Description

Bug description

If a user has chosen to set a distinct_id when identifying users, we should use that in place of the default one set by PostHog in as many places as we can.

In this case (see ticket for context), exports are not always using the user-defined distinct_id, which makes the export less useful and human-readable, requiring further lookups to get the data needed.

Additional context

https://posthoghelp.zendesk.com/agent/tickets/18240

Debug info

No response

vojtajina commented 1 month ago

Potentially relevant to https://posthog.com/questions/identify-event-submitted-but-distinct-id-not-associated-with-other-events

darkopia commented 1 month ago

Adding a +1 to this but also noting that it appears to happen in Cohorts too:

https://posthoghelp.zendesk.com/agent/tickets/19795 https://posthoghelp.zendesk.com/agent/tickets/19803