@funnelsgrove/runtime 0.7.21 → 0.7.23
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,13 @@ export const bootstrapPostHog = (config) => {
|
|
|
101
101
|
capture_exceptions: false,
|
|
102
102
|
capture_heatmaps: false,
|
|
103
103
|
capture_performance: false,
|
|
104
|
-
disable_session_recording:
|
|
104
|
+
disable_session_recording: true,
|
|
105
|
+
before_send: (event) => {
|
|
106
|
+
if (!event || Object.keys(scopeProperties).length === 0) {
|
|
107
|
+
return event;
|
|
108
|
+
}
|
|
109
|
+
return Object.assign(Object.assign({}, event), { properties: Object.assign(Object.assign({}, event.properties), scopeProperties) });
|
|
110
|
+
},
|
|
105
111
|
session_recording: {
|
|
106
112
|
maskAllInputs: true,
|
|
107
113
|
},
|
|
@@ -112,6 +118,9 @@ export const bootstrapPostHog = (config) => {
|
|
|
112
118
|
if (Object.keys(scopeProperties).length > 0) {
|
|
113
119
|
posthog.register(scopeProperties);
|
|
114
120
|
}
|
|
121
|
+
if (sessionReplayEnabled) {
|
|
122
|
+
posthog.startSessionRecording();
|
|
123
|
+
}
|
|
115
124
|
let unsubscribe = null;
|
|
116
125
|
let scopedReloadRetried = false;
|
|
117
126
|
unsubscribe = posthog.onFeatureFlags((flags) => {
|