PostHog / customerio-plugin

Send event data and emails into Customer.io.
https://posthog.com/plugins/customer.io
MIT License
6 stars 8 forks source link

Adding anonymous_id to customer and event payloads #41

Closed smccaffrey closed 4 months ago

smccaffrey commented 4 months ago

Per the CustomerIO documentation here I would like to track an anonymous_id for both identify and event calls.

The goal is to enable "event merging" within the CutomerIO platform.

MarconLP commented 4 months ago

Hey @smccaffrey, unfortunately, the solution is not that simple and after the user has been identified in PostHog, the event.distinct_id will change without a reference. We'll need to merge users instead and the solution will look something like this: https://github.com/PostHog/customerio-plugin/pull/40/files

smccaffrey commented 4 months ago

@MarconLP According to that PR you linked above this doesn't seem possible because we have to make an additional call to the PostHog system to resolve users and changing distinct_ids?