@adobe/helix-rum-enhancer 2.7.1 → 2.7.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [2.7.2](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.1...v2.7.2) (2024-04-18)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * exclude utm_term from collection ([732c647](https://github.com/adobe/helix-rum-enhancer/commit/732c64746a238c8726f6a14d2025778880611f86)), closes [#153](https://github.com/adobe/helix-rum-enhancer/issues/153)
7
+ * exclude utm_term from collection ([545a168](https://github.com/adobe/helix-rum-enhancer/commit/545a168da34cf58a3f84be84545d0692827ee98b))
8
+
1
9
  ## [2.7.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.0...v2.7.1) (2024-04-18)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/index.js CHANGED
@@ -247,7 +247,9 @@ function addUTMParametersTracking() {
247
247
  const usp = new URLSearchParams(window.location.search);
248
248
  [...usp.entries()]
249
249
  .filter(([key]) => key.startsWith('utm_'))
250
+ // exclude keys that may leak PII
250
251
  .filter(([key]) => key !== 'utm_id')
252
+ .filter(([key]) => key !== 'utm_term')
251
253
  .forEach(([source, target]) => sampleRUM('utm', { source, target }));
252
254
  }
253
255