Type mismatch when using @segment/analytics-next #1683
Open
Description
When using the latest @segment/analytics-next
, passing window.analytics
to segment in posthog-js
triggers type errors. Our segment config currently expects the older Segment interface SegmentAnalytics
. We should update posthog-js
to accept the latest type AnalyticsSnippet
.
Internal ticket: https://posthoghelp.zendesk.com/agent/tickets/23120