@devskin/browser-sdk 1.0.37 → 1.0.38

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.href,
933
+ pageUrl: window.location.pathname,
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.href,
961
+ pageUrl: window.location.pathname,
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.href,
998
+ pageUrl: window.location.pathname,
999
999
  timestamp: new Date().toISOString(),
1000
1000
  };
1001
1001
  this.mouseMoveData.push(mouseMoveData);
@@ -13702,8 +13702,12 @@
13702
13702
  this.sendToBackend('/v1/rum/events/batch', { events: dataArray }, useBeacon);
13703
13703
  }
13704
13704
  else if (type === 'heatmap') {
13705
- // Heatmap expects array format
13706
- this.sendToBackend(endpoint, { heatmaps: dataArray }, useBeacon);
13705
+ // Heatmap expects array format with apiKey and appId
13706
+ this.sendToBackend(endpoint, {
13707
+ heatmaps: dataArray,
13708
+ apiKey: this.config.apiKey,
13709
+ appId: this.config.appId
13710
+ }, useBeacon);
13707
13711
  }
13708
13712
  else {
13709
13713
  // Send each item individually (network, performance, error)
@@ -14009,7 +14013,7 @@
14009
14013
  userId: this.userId || undefined,
14010
14014
  anonymousId: this.anonymousId || undefined,
14011
14015
  properties: Object.assign(Object.assign({}, properties), this.getContextData()),
14012
- pageUrl: window.location.href,
14016
+ pageUrl: window.location.pathname,
14013
14017
  pageTitle: document.title,
14014
14018
  };
14015
14019
  (_a = this.transport) === null || _a === void 0 ? void 0 : _a.sendEvent(eventData);