@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.
@@ -930,7 +930,7 @@
930
930
  element: this.getElementSelector(target),
931
931
  elementId: target.id || undefined,
932
932
  elementClass: target.className || undefined,
933
- pageUrl: window.location.pathname,
933
+ pageUrl: window.location.href,
934
934
  timestamp: new Date().toISOString(),
935
935
  viewportWidth: window.innerWidth,
936
936
  viewportHeight: window.innerHeight,
@@ -958,7 +958,7 @@
958
958
  maxDepth: this.maxScrollDepth,
959
959
  pageHeight: documentHeight,
960
960
  viewportHeight: windowHeight,
961
- pageUrl: window.location.pathname,
961
+ pageUrl: window.location.href,
962
962
  timestamp: new Date().toISOString(),
963
963
  };
964
964
  this.scrollData.push(scrollData);
@@ -995,7 +995,7 @@
995
995
  const mouseMoveData = {
996
996
  x: event.clientX + window.scrollX,
997
997
  y: event.clientY + window.scrollY,
998
- pageUrl: window.location.pathname,
998
+ pageUrl: window.location.href,
999
999
  timestamp: new Date().toISOString(),
1000
1000
  };
1001
1001
  this.mouseMoveData.push(mouseMoveData);
@@ -13941,8 +13941,7 @@
13941
13941
  this.heatmapCollector.start();
13942
13942
  // Initialize screenshot collector and capture page
13943
13943
  this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
13944
- // Send only the pathname (not full URL) for consistent hashing
13945
- this.screenshotCollector.captureAndSend(this.sessionId, window.location.pathname);
13944
+ this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
13946
13945
  if (this.config.debug) {
13947
13946
  console.log('[DevSkin] Heatmap collection enabled (always on)');
13948
13947
  }
@@ -14013,7 +14012,7 @@
14013
14012
  userId: this.userId || undefined,
14014
14013
  anonymousId: this.anonymousId || undefined,
14015
14014
  properties: Object.assign(Object.assign({}, properties), this.getContextData()),
14016
- pageUrl: window.location.pathname,
14015
+ pageUrl: window.location.href,
14017
14016
  pageTitle: document.title,
14018
14017
  };
14019
14018
  (_a = this.transport) === null || _a === void 0 ? void 0 : _a.sendEvent(eventData);