@adobe/helix-rum-enhancer 1.15.0 → 1.15.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 +15 -0
- package/package.json +1 -1
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## [1.15.2](https://github.com/adobe/helix-rum-enhancer/compare/v1.15.1...v1.15.2) (2024-04-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **backport:** exclude utm_term from collection ([7a5e5b2](https://github.com/adobe/helix-rum-enhancer/commit/7a5e5b2ecd9eeda336b30163684b5302e7fe3258)), closes [#153](https://github.com/adobe/helix-rum-enhancer/issues/153)
|
|
7
|
+
* **backport:** exclude utm_term from collection [#154](https://github.com/adobe/helix-rum-enhancer/issues/154) ([57d615b](https://github.com/adobe/helix-rum-enhancer/commit/57d615b89580cfe62a1877413ee29603b93371a2)), closes [#153](https://github.com/adobe/helix-rum-enhancer/issues/153)
|
|
8
|
+
|
|
9
|
+
## [1.15.1](https://github.com/adobe/helix-rum-enhancer/compare/v1.15.0...v1.15.1) (2024-04-18)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* make targetselector null safe ([#157](https://github.com/adobe/helix-rum-enhancer/issues/157)) ([6f8e117](https://github.com/adobe/helix-rum-enhancer/commit/6f8e11753358e835688d3dfd2d4a0d7f420848a5))
|
|
15
|
+
|
|
1
16
|
# [1.15.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.14.0...v1.15.0) (2024-04-18)
|
|
2
17
|
|
|
3
18
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -67,6 +67,7 @@ new PerformanceObserver((list) => list
|
|
|
67
67
|
.observe({ type: 'navigation', buffered: true });
|
|
68
68
|
|
|
69
69
|
sampleRUM.targetselector = (element) => {
|
|
70
|
+
if (!element) return undefined;
|
|
70
71
|
const getTargetValue = (el) => el.getAttribute('data-rum-target') || el.getAttribute('href')
|
|
71
72
|
|| el.currentSrc || el.getAttribute('src')
|
|
72
73
|
|| el.dataset.action || el.action;
|
|
@@ -194,6 +195,7 @@ new PerformanceObserver((list) => {
|
|
|
194
195
|
[...new URLSearchParams(window.location.search).entries()]
|
|
195
196
|
.filter(([key]) => key.startsWith('utm_'))
|
|
196
197
|
.filter(([key]) => key !== 'utm_id')
|
|
198
|
+
.filter(([key]) => key !== 'utm_term')
|
|
197
199
|
.forEach(([key, value]) => {
|
|
198
200
|
sampleRUM('utm', { source: key, target: value });
|
|
199
201
|
});
|