@adobe/helix-rum-enhancer 1.12.0 → 1.13.1
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 +16 -0
- package/package.json +3 -3
- package/src/index.js +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [1.13.1](https://github.com/adobe/helix-rum-enhancer/compare/v1.13.0...v1.13.1) (2024-03-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* enable eager cwv reporting for revolt ([53ced3b](https://github.com/adobe/helix-rum-enhancer/commit/53ced3b7983d4865c1c9a0cc0ee771cab3559484))
|
|
7
|
+
|
|
8
|
+
# [1.13.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.12.0...v1.13.0) (2024-03-22)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* track UTM query parameters ([0f4e8d7](https://github.com/adobe/helix-rum-enhancer/commit/0f4e8d79f9c1808e1c06ddd01ce50364ea32e787))
|
|
14
|
+
* track UTM query parameters ([a5c1620](https://github.com/adobe/helix-rum-enhancer/commit/a5c16201d5cfc30dfe33014d543f2bbfde103bd3))
|
|
15
|
+
* track UTM query parameters (backport) ([c988ee6](https://github.com/adobe/helix-rum-enhancer/commit/c988ee6c198cbd2009600c55504e89487ab3d821)), closes [#137](https://github.com/adobe/helix-rum-enhancer/issues/137)
|
|
16
|
+
|
|
1
17
|
# [1.12.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.11.1...v1.12.0) (2024-03-04)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-rum-enhancer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Helix RUM Enhancer",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@adobe/eslint-config-helix": "2.0.6",
|
|
33
33
|
"@semantic-release/changelog": "6.0.3",
|
|
34
34
|
"@semantic-release/git": "10.0.1",
|
|
35
|
-
"@semantic-release/npm": "
|
|
35
|
+
"@semantic-release/npm": "12.0.0",
|
|
36
36
|
"c8": "9.1.0",
|
|
37
37
|
"codecov": "3.8.3",
|
|
38
38
|
"eslint": "8.57.0",
|
|
39
39
|
"eslint-plugin-header": "3.1.1",
|
|
40
40
|
"eslint-plugin-import": "2.29.1",
|
|
41
|
-
"husky": "
|
|
41
|
+
"husky": "9.0.11",
|
|
42
42
|
"jsdoc-to-markdown": "8.0.1",
|
|
43
43
|
"junit-report-builder": "3.2.1",
|
|
44
44
|
"lint-staged": "15.2.2",
|
package/src/index.js
CHANGED
|
@@ -92,7 +92,7 @@ sampleRUM.drain('cwv', (() => {
|
|
|
92
92
|
sampleRUM('cwv', data);
|
|
93
93
|
};
|
|
94
94
|
|
|
95
|
-
const featureToggle = () =>
|
|
95
|
+
const featureToggle = () => ['blog.adobe.com', 'www.revolt.tv'].includes(window.location.hostname);
|
|
96
96
|
const isEager = (metric) => ['CLS', 'LCP'].includes(metric);
|
|
97
97
|
|
|
98
98
|
// When loading `web-vitals` using a classic script, all the public
|
|
@@ -177,3 +177,11 @@ const observer = new PerformanceObserver((list) => {
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
observer.observe({ type: 'resource', buffered: true });
|
|
180
|
+
|
|
181
|
+
const usp = new URLSearchParams(window.location.search);
|
|
182
|
+
[...usp.entries()]
|
|
183
|
+
.filter(([key]) => key.startsWith('utm_'))
|
|
184
|
+
.filter(([key]) => key !== 'utm_id')
|
|
185
|
+
.forEach(([key, value]) => {
|
|
186
|
+
sampleRUM('utm', { source: key, target: value });
|
|
187
|
+
});
|