@adobe/helix-rum-enhancer
Advanced tools
Comparing version 2.4.1 to 2.5.0
@@ -0,1 +1,8 @@ | ||
# [2.5.0](https://github.com/adobe/helix-rum-enhancer/compare/v2.4.1...v2.5.0) (2024-04-16) | ||
### Features | ||
* report source and target along with lcp element ([bebb429](https://github.com/adobe/helix-rum-enhancer/commit/bebb4291a1cc5fe07af31f87988c84ba07e57695)) | ||
## [2.4.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.4.0...v2.4.1) (2024-04-08) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@adobe/helix-rum-enhancer", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "Helix RUM Enhancer", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -114,2 +114,7 @@ /* | ||
data.cwv[measurement.name] = measurement.value; | ||
if (measurement.name === 'LCP' && measurement.entries.length > 0) { | ||
const { element } = measurement.entries.pop(); | ||
data.target = sampleRUM.targetselector(element); | ||
data.source = sampleRUM.sourceselector(element) || element.outerHTML.slice(0, 30); | ||
} | ||
sampleRUM('cwv', data); | ||
@@ -116,0 +121,0 @@ }; |
46372
323