PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.39k stars 1.13k forks source link

feat(web-analytics): Add option behind FF to switch to V2 web analytics #23364

Closed robbie-c closed 3 days ago

robbie-c commented 4 days ago

Note: this will invalidated the query cache, so my plan is to merge this outside of peak times, e.g. at the start of the work day tomorrow

Problem

We don't have a way of switching people to the v2 table. It's backfilled for team 2 and I want to start dogfooding :)

Changes

Add a setting behind a FF to change the sessions table version

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Changed the setting locally, checked that the clickhouse that was actually run matched the expected version

github-actions[bot] commented 4 days ago

Size Change: +224 B (+0.02%)

Total Size: 1.06 MB

ℹ️ View Unchanged | Filename | Size | Change | | :--- | :---: | :---: | | `frontend/dist/toolbar.js` | 1.06 MB | +224 B (+0.02%) |

compressed-size-action