Context
This is the WeChat Mini Program runtime scope split out of #2223.
WeChat Mini Programs do not provide the browser APIs expected by posthog-js or posthog-js-lite. They use platform-specific APIs such as wx.request, wx storage, and Mini Program lifecycle hooks.
Proposed scope
Provide an officially supported PostHog SDK for the WeChat Mini Program runtime, preferably built on @posthog/core.
MVP capabilities
- Event capture
- User identification and reset
- Persistent and session super properties
- Session tracking
- Persistent event queue
- Batching, retries, and explicit flushing using
wx.request
- Persistence using WeChat storage APIs
- Appropriate flushing during Mini Program lifecycle transitions
Out of scope for the initial SDK
Browser DOM-based features such as web autocapture, heatmaps, and session replay require separate Mini Program-specific designs and should not be implied by the MVP.
Acceptance criteria
Related
Context
This is the WeChat Mini Program runtime scope split out of #2223.
WeChat Mini Programs do not provide the browser APIs expected by
posthog-jsorposthog-js-lite. They use platform-specific APIs such aswx.request,wxstorage, and Mini Program lifecycle hooks.Proposed scope
Provide an officially supported PostHog SDK for the WeChat Mini Program runtime, preferably built on
@posthog/core.MVP capabilities
wx.requestOut of scope for the initial SDK
Browser DOM-based features such as web autocapture, heatmaps, and session replay require separate Mini Program-specific designs and should not be implied by the MVP.
Acceptance criteria
Related