mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 16:47:32 +00:00
fix: update session recordings for posthog (#9775)
<!-- Please inform yourself about the contribution guidelines on submitting a PR here: https://github.com/zitadel/zitadel/blob/main/CONTRIBUTING.md#submit-a-pull-request-pr. Take note of how PR/commit titles should be written and replace the template texts in the sections below. Don't remove any of the sections. It is important that the commit history clearly shows what is changed and why. Important: By submitting a contribution you agree to the terms from our Licensing Policy as described here: https://github.com/zitadel/zitadel/blob/main/LICENSING.md#community-contributions. --> # Which Problems Are Solved - Updates to only capture 10% of events with posthog # How the Problems Are Solved - Uses a feature flag rolled out to 10% of users to enable the capture # Additional Changes N/A # Additional Context N/A
This commit is contained in:
@@ -26,8 +26,16 @@ export class PosthogService implements OnDestroy {
|
|||||||
maskAllInputs: true,
|
maskAllInputs: true,
|
||||||
maskTextSelector: '*',
|
maskTextSelector: '*',
|
||||||
},
|
},
|
||||||
|
disable_session_recording: true,
|
||||||
enable_heatmaps: true,
|
enable_heatmaps: true,
|
||||||
persistence: 'memory',
|
persistence: 'memory',
|
||||||
|
loaded: (posthog) => {
|
||||||
|
posthog.onFeatureFlags((flags) => {
|
||||||
|
if (posthog.isFeatureEnabled('session_recording')) {
|
||||||
|
posthog.startSessionRecording();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user