@adobe/helix-rum-enhancer 1.12.0 → 1.13.0

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,12 @@
1
+ # [1.13.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.12.0...v1.13.0) (2024-03-22)
2
+
3
+
4
+ ### Features
5
+
6
+ * track UTM query parameters ([0f4e8d7](https://github.com/adobe/helix-rum-enhancer/commit/0f4e8d79f9c1808e1c06ddd01ce50364ea32e787))
7
+ * track UTM query parameters ([a5c1620](https://github.com/adobe/helix-rum-enhancer/commit/a5c16201d5cfc30dfe33014d543f2bbfde103bd3))
8
+ * 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)
9
+
1
10
  # [1.12.0](https://github.com/adobe/helix-rum-enhancer/compare/v1.11.1...v1.12.0) (2024-03-04)
2
11
 
3
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
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": "11.0.3",
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": "8.0.3",
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
@@ -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
+ });