@adobe/helix-rum-enhancer 2.7.1 → 2.7.3
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 +15 -0
- package/package.json +1 -1
- package/src/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [2.7.3](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.2...v2.7.3) (2024-04-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* no lcp target text from missing element ([#161](https://github.com/adobe/helix-rum-enhancer/issues/161)) ([0b75e80](https://github.com/adobe/helix-rum-enhancer/commit/0b75e8080b0950dfa0298920e632d61e712563ed))
|
|
7
|
+
|
|
8
|
+
## [2.7.2](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.1...v2.7.2) (2024-04-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* 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)
|
|
14
|
+
* exclude utm_term from collection ([545a168](https://github.com/adobe/helix-rum-enhancer/commit/545a168da34cf58a3f84be84545d0692827ee98b))
|
|
15
|
+
|
|
1
16
|
## [2.7.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.7.0...v2.7.1) (2024-04-18)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -119,7 +119,7 @@ function addCWVTracking() {
|
|
|
119
119
|
if (measurement.name === 'LCP' && measurement.entries.length > 0) {
|
|
120
120
|
const { element } = measurement.entries.pop();
|
|
121
121
|
data.target = targetselector(element);
|
|
122
|
-
data.source = sourceselector(element) || element.outerHTML.slice(0, 30);
|
|
122
|
+
data.source = sourceselector(element) || (element && element.outerHTML.slice(0, 30));
|
|
123
123
|
}
|
|
124
124
|
sampleRUM('cwv', data);
|
|
125
125
|
};
|
|
@@ -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
|
|