@devskin/browser-sdk 1.0.37 → 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.
@@ -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)
@@ -13937,8 +13941,7 @@
13937
13941
  this.heatmapCollector.start();
13938
13942
  // Initialize screenshot collector and capture page
13939
13943
  this.screenshotCollector = new ScreenshotCollector(this.config, this.transport);
13940
- // Send only the pathname (not full URL) for consistent hashing
13941
- this.screenshotCollector.captureAndSend(this.sessionId, window.location.pathname);
13944
+ this.screenshotCollector.captureAndSend(this.sessionId, window.location.href);
13942
13945
  if (this.config.debug) {
13943
13946
  console.log('[DevSkin] Heatmap collection enabled (always on)');
13944
13947
  }