@funnelsgrove/runtime 0.7.22 → 0.7.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -101,7 +101,7 @@ export const bootstrapPostHog = (config) => {
101
101
  capture_exceptions: false,
102
102
  capture_heatmaps: false,
103
103
  capture_performance: false,
104
- disable_session_recording: !sessionReplayEnabled,
104
+ disable_session_recording: true,
105
105
  before_send: (event) => {
106
106
  if (!event || Object.keys(scopeProperties).length === 0) {
107
107
  return event;
@@ -118,6 +118,10 @@ export const bootstrapPostHog = (config) => {
118
118
  if (Object.keys(scopeProperties).length > 0) {
119
119
  posthog.register(scopeProperties);
120
120
  }
121
+ if (sessionReplayEnabled) {
122
+ posthog.startSessionRecording();
123
+ posthog.capture('funnelsgrove_session_replay_scope', scopeProperties);
124
+ }
121
125
  let unsubscribe = null;
122
126
  let scopedReloadRetried = false;
123
127
  unsubscribe = posthog.onFeatureFlags((flags) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnelsgrove/runtime",
3
- "version": "0.7.22",
3
+ "version": "0.7.24",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",