mixpanel-browser 2.71.0 → 2.71.1
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.
- package/.claude/settings.local.json +9 -0
- package/CHANGELOG.md +3 -0
- package/dist/mixpanel-core.cjs.js +7 -5
- package/dist/mixpanel-recorder.js +1 -1
- package/dist/mixpanel-recorder.min.js +1 -1
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +7 -5
- package/dist/mixpanel-with-recorder.js +7 -5
- package/dist/mixpanel-with-recorder.min.js +1 -1
- package/dist/mixpanel.amd.js +7 -5
- package/dist/mixpanel.cjs.js +7 -5
- package/dist/mixpanel.globals.js +7 -5
- package/dist/mixpanel.min.js +70 -70
- package/dist/mixpanel.module.js +7 -5
- package/dist/mixpanel.umd.js +7 -5
- package/package.json +1 -1
- package/src/autocapture/index.js +6 -4
- package/src/config.js +1 -1
package/dist/mixpanel.amd.js
CHANGED
|
@@ -14043,7 +14043,7 @@ define((function () { 'use strict';
|
|
|
14043
14043
|
|
|
14044
14044
|
var Config = {
|
|
14045
14045
|
DEBUG: false,
|
|
14046
|
-
LIB_VERSION: '2.71.
|
|
14046
|
+
LIB_VERSION: '2.71.1'
|
|
14047
14047
|
};
|
|
14048
14048
|
|
|
14049
14049
|
/* eslint camelcase: "off", eqeqeq: "off" */
|
|
@@ -19225,6 +19225,11 @@ define((function () { 'use strict';
|
|
|
19225
19225
|
// User has navigated away already ending their impression.
|
|
19226
19226
|
return;
|
|
19227
19227
|
}
|
|
19228
|
+
|
|
19229
|
+
if (!this.getConfig(CONFIG_TRACK_PAGE_LEAVE) && !this.mp.is_recording_heatmap_data()) {
|
|
19230
|
+
return;
|
|
19231
|
+
}
|
|
19232
|
+
|
|
19228
19233
|
this.hasTrackedScrollSession = true;
|
|
19229
19234
|
var viewportHeight = Math.max(document$1.documentElement.clientHeight, win.innerHeight || 0);
|
|
19230
19235
|
var scrollPercentage = Math.round(Math.max(this.maxScrollViewDepth - viewportHeight, 0) / (currentScrollHeight - viewportHeight) * 100);
|
|
@@ -19244,12 +19249,9 @@ define((function () { 'use strict';
|
|
|
19244
19249
|
'$current_url': currentUrl || _.info.currentUrl(),
|
|
19245
19250
|
'$viewportHeight': viewportHeight, // This is the fold line
|
|
19246
19251
|
'$viewportWidth': Math.max(document$1.documentElement.clientWidth, win.innerWidth || 0),
|
|
19252
|
+
'$captured_for_heatmap': this.mp.is_recording_heatmap_data()
|
|
19247
19253
|
}, DEFAULT_PROPS);
|
|
19248
19254
|
|
|
19249
|
-
if (this.mp.is_recording_heatmap_data() && !this.getConfig(CONFIG_TRACK_PAGE_LEAVE)) {
|
|
19250
|
-
props['$captured_for_heatmap'] = true;
|
|
19251
|
-
}
|
|
19252
|
-
|
|
19253
19255
|
// Send with beacon transport to ensure event is sent before unload
|
|
19254
19256
|
this.mp.track(MP_EV_PAGE_LEAVE, props, {transport: 'sendBeacon'});
|
|
19255
19257
|
};
|
package/dist/mixpanel.cjs.js
CHANGED
|
@@ -14043,7 +14043,7 @@ if (typeof Promise !== 'undefined' && Promise.toString().indexOf('[native code]'
|
|
|
14043
14043
|
|
|
14044
14044
|
var Config = {
|
|
14045
14045
|
DEBUG: false,
|
|
14046
|
-
LIB_VERSION: '2.71.
|
|
14046
|
+
LIB_VERSION: '2.71.1'
|
|
14047
14047
|
};
|
|
14048
14048
|
|
|
14049
14049
|
/* eslint camelcase: "off", eqeqeq: "off" */
|
|
@@ -19225,6 +19225,11 @@ Autocapture.prototype._trackPageLeave = function(ev, currentUrl, currentScrollHe
|
|
|
19225
19225
|
// User has navigated away already ending their impression.
|
|
19226
19226
|
return;
|
|
19227
19227
|
}
|
|
19228
|
+
|
|
19229
|
+
if (!this.getConfig(CONFIG_TRACK_PAGE_LEAVE) && !this.mp.is_recording_heatmap_data()) {
|
|
19230
|
+
return;
|
|
19231
|
+
}
|
|
19232
|
+
|
|
19228
19233
|
this.hasTrackedScrollSession = true;
|
|
19229
19234
|
var viewportHeight = Math.max(document$1.documentElement.clientHeight, win.innerHeight || 0);
|
|
19230
19235
|
var scrollPercentage = Math.round(Math.max(this.maxScrollViewDepth - viewportHeight, 0) / (currentScrollHeight - viewportHeight) * 100);
|
|
@@ -19244,12 +19249,9 @@ Autocapture.prototype._trackPageLeave = function(ev, currentUrl, currentScrollHe
|
|
|
19244
19249
|
'$current_url': currentUrl || _.info.currentUrl(),
|
|
19245
19250
|
'$viewportHeight': viewportHeight, // This is the fold line
|
|
19246
19251
|
'$viewportWidth': Math.max(document$1.documentElement.clientWidth, win.innerWidth || 0),
|
|
19252
|
+
'$captured_for_heatmap': this.mp.is_recording_heatmap_data()
|
|
19247
19253
|
}, DEFAULT_PROPS);
|
|
19248
19254
|
|
|
19249
|
-
if (this.mp.is_recording_heatmap_data() && !this.getConfig(CONFIG_TRACK_PAGE_LEAVE)) {
|
|
19250
|
-
props['$captured_for_heatmap'] = true;
|
|
19251
|
-
}
|
|
19252
|
-
|
|
19253
19255
|
// Send with beacon transport to ensure event is sent before unload
|
|
19254
19256
|
this.mp.track(MP_EV_PAGE_LEAVE, props, {transport: 'sendBeacon'});
|
|
19255
19257
|
};
|
package/dist/mixpanel.globals.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var Config = {
|
|
5
5
|
DEBUG: false,
|
|
6
|
-
LIB_VERSION: '2.71.
|
|
6
|
+
LIB_VERSION: '2.71.1'
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
// since es6 imports are static and we run unit tests from the console, window won't be defined when importing this file
|
|
@@ -3510,6 +3510,11 @@
|
|
|
3510
3510
|
// User has navigated away already ending their impression.
|
|
3511
3511
|
return;
|
|
3512
3512
|
}
|
|
3513
|
+
|
|
3514
|
+
if (!this.getConfig(CONFIG_TRACK_PAGE_LEAVE) && !this.mp.is_recording_heatmap_data()) {
|
|
3515
|
+
return;
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3513
3518
|
this.hasTrackedScrollSession = true;
|
|
3514
3519
|
var viewportHeight = Math.max(document$1.documentElement.clientHeight, win.innerHeight || 0);
|
|
3515
3520
|
var scrollPercentage = Math.round(Math.max(this.maxScrollViewDepth - viewportHeight, 0) / (currentScrollHeight - viewportHeight) * 100);
|
|
@@ -3529,12 +3534,9 @@
|
|
|
3529
3534
|
'$current_url': currentUrl || _.info.currentUrl(),
|
|
3530
3535
|
'$viewportHeight': viewportHeight, // This is the fold line
|
|
3531
3536
|
'$viewportWidth': Math.max(document$1.documentElement.clientWidth, win.innerWidth || 0),
|
|
3537
|
+
'$captured_for_heatmap': this.mp.is_recording_heatmap_data()
|
|
3532
3538
|
}, DEFAULT_PROPS);
|
|
3533
3539
|
|
|
3534
|
-
if (this.mp.is_recording_heatmap_data() && !this.getConfig(CONFIG_TRACK_PAGE_LEAVE)) {
|
|
3535
|
-
props['$captured_for_heatmap'] = true;
|
|
3536
|
-
}
|
|
3537
|
-
|
|
3538
3540
|
// Send with beacon transport to ensure event is sent before unload
|
|
3539
3541
|
this.mp.track(MP_EV_PAGE_LEAVE, props, {transport: 'sendBeacon'});
|
|
3540
3542
|
};
|