@devskin/browser-sdk 1.0.38 → 1.0.39
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/dist/devskin.cjs.js +5 -6
- package/dist/devskin.cjs.js.map +1 -1
- package/dist/devskin.esm.js +5 -6
- package/dist/devskin.esm.js.map +1 -1
- package/dist/devskin.umd.js +5 -6
- package/dist/devskin.umd.js.map +1 -1
- package/dist/devskin.umd.min.js +2 -2
- package/dist/devskin.umd.min.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/devskin.cjs.js
CHANGED
|
@@ -928,7 +928,7 @@ class HeatmapCollector {
|
|
|
928
928
|
element: this.getElementSelector(target),
|
|
929
929
|
elementId: target.id || undefined,
|
|
930
930
|
elementClass: target.className || undefined,
|
|
931
|
-
pageUrl: window.location.
|
|
931
|
+
pageUrl: window.location.href,
|
|
932
932
|
timestamp: new Date().toISOString(),
|
|
933
933
|
viewportWidth: window.innerWidth,
|
|
934
934
|
viewportHeight: window.innerHeight,
|
|
@@ -956,7 +956,7 @@ class HeatmapCollector {
|
|
|
956
956
|
maxDepth: this.maxScrollDepth,
|
|
957
957
|
pageHeight: documentHeight,
|
|
958
958
|
viewportHeight: windowHeight,
|
|
959
|
-
pageUrl: window.location.
|
|
959
|
+
pageUrl: window.location.href,
|
|
960
960
|
timestamp: new Date().toISOString(),
|
|
961
961
|
};
|
|
962
962
|
this.scrollData.push(scrollData);
|
|
@@ -993,7 +993,7 @@ class HeatmapCollector {
|
|
|
993
993
|
const mouseMoveData = {
|
|
994
994
|
x: event.clientX + window.scrollX,
|
|
995
995
|
y: event.clientY + window.scrollY,
|
|
996
|
-
pageUrl: window.location.
|
|
996
|
+
pageUrl: window.location.href,
|
|
997
997
|
timestamp: new Date().toISOString(),
|
|
998
998
|
};
|
|
999
999
|
this.mouseMoveData.push(mouseMoveData);
|
|
@@ -13939,8 +13939,7 @@ class DevSkinSDK {
|
|
|
13939
13939
|
this.heatmapCollector.start();
|
|
13940
13940
|
// Initialize screenshot collector and capture page
|
|
13941
13941
|
this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
|
|
13942
|
-
|
|
13943
|
-
this.screenshotCollector.captureAndSend(this.sessionId, window.location.pathname);
|
|
13942
|
+
this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
|
|
13944
13943
|
if (this.config.debug) {
|
|
13945
13944
|
console.log('[DevSkin] Heatmap collection enabled (always on)');
|
|
13946
13945
|
}
|
|
@@ -14011,7 +14010,7 @@ class DevSkinSDK {
|
|
|
14011
14010
|
userId: this.userId || undefined,
|
|
14012
14011
|
anonymousId: this.anonymousId || undefined,
|
|
14013
14012
|
properties: Object.assign(Object.assign({}, properties), this.getContextData()),
|
|
14014
|
-
pageUrl: window.location.
|
|
14013
|
+
pageUrl: window.location.href,
|
|
14015
14014
|
pageTitle: document.title,
|
|
14016
14015
|
};
|
|
14017
14016
|
(_a = this.transport) === null || _a === void 0 ? void 0 : _a.sendEvent(eventData);
|