@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.
@@ -924,7 +924,7 @@ class HeatmapCollector {
924
924
  element: this.getElementSelector(target),
925
925
  elementId: target.id || undefined,
926
926
  elementClass: target.className || undefined,
927
- pageUrl: window.location.pathname,
927
+ pageUrl: window.location.href,
928
928
  timestamp: new Date().toISOString(),
929
929
  viewportWidth: window.innerWidth,
930
930
  viewportHeight: window.innerHeight,
@@ -952,7 +952,7 @@ class HeatmapCollector {
952
952
  maxDepth: this.maxScrollDepth,
953
953
  pageHeight: documentHeight,
954
954
  viewportHeight: windowHeight,
955
- pageUrl: window.location.pathname,
955
+ pageUrl: window.location.href,
956
956
  timestamp: new Date().toISOString(),
957
957
  };
958
958
  this.scrollData.push(scrollData);
@@ -989,7 +989,7 @@ class HeatmapCollector {
989
989
  const mouseMoveData = {
990
990
  x: event.clientX + window.scrollX,
991
991
  y: event.clientY + window.scrollY,
992
- pageUrl: window.location.pathname,
992
+ pageUrl: window.location.href,
993
993
  timestamp: new Date().toISOString(),
994
994
  };
995
995
  this.mouseMoveData.push(mouseMoveData);
@@ -13935,8 +13935,7 @@ class DevSkinSDK {
13935
13935
  this.heatmapCollector.start();
13936
13936
  // Initialize screenshot collector and capture page
13937
13937
  this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
13938
- // Send only the pathname (not full URL) for consistent hashing
13939
- this.screenshotCollector.captureAndSend(this.sessionId, window.location.pathname);
13938
+ this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
13940
13939
  if (this.config.debug) {
13941
13940
  console.log('[DevSkin] Heatmap collection enabled (always on)');
13942
13941
  }
@@ -14007,7 +14006,7 @@ class DevSkinSDK {
14007
14006
  userId: this.userId || undefined,
14008
14007
  anonymousId: this.anonymousId || undefined,
14009
14008
  properties: Object.assign(Object.assign({}, properties), this.getContextData()),
14010
- pageUrl: window.location.pathname,
14009
+ pageUrl: window.location.href,
14011
14010
  pageTitle: document.title,
14012
14011
  };
14013
14012
  (_a = this.transport) === null || _a === void 0 ? void 0 : _a.sendEvent(eventData);