When I do this, the Segment integration works as expected but events that are reported directly through PostHog are triggered twice (e.g. "clicked span," "typed something into input"). The network requests that are being made to PostHog include a mix of ver=1.161.3 and ver=1.160.0 which I think points towards the installed posthog-js version and the one loaded by the Segment integration both sending these events. The installed version of posthog-js is v1.160.0, so the newer version must be loaded by the integration.
I'm initializing Segment and PostHog like so:
When I do this, the Segment integration works as expected but events that are reported directly through PostHog are triggered twice (e.g. "clicked span," "typed something into input"). The network requests that are being made to PostHog include a mix of
ver=1.161.3
andver=1.160.0
which I think points towards the installedposthog-js
version and the one loaded by the Segment integration both sending these events. The installed version ofposthog-js
isv1.160.0
, so the newer version must be loaded by the integration.