@adobe/spacecat-shared-rum-api-client 2.23.0 → 2.23.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 +7 -0
- package/package.json +1 -1
- package/src/functions/form-vitals.js +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-rum-api-client-v2.23.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.23.0...@adobe/spacecat-shared-rum-api-client-v2.23.1) (2025-04-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* eliminating unnecessary data from forms vitals ([#704](https://github.com/adobe/spacecat-shared/issues/704)) ([29be01e](https://github.com/adobe/spacecat-shared/commit/29be01e5d77d41b728a013a4b5532d06a08f7b2c))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-rum-api-client-v2.23.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.22.6...@adobe/spacecat-shared-rum-api-client-v2.23.0) (2025-04-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DataChunks } from '@adobe/rum-distiller';
|
|
14
|
-
import trafficAcquisition from './traffic-acquisition.js';
|
|
15
14
|
import { generateKey, DELIMITER, loadBundles } from '../utils.js';
|
|
16
15
|
|
|
17
16
|
const METRICS = ['formview', 'formengagement', 'formsubmit'];
|
|
@@ -155,11 +154,11 @@ function handler(bundles) {
|
|
|
155
154
|
}
|
|
156
155
|
});
|
|
157
156
|
});
|
|
158
|
-
// traffic acquisition data per url
|
|
159
|
-
const trafficByUrl = trafficAcquisition.handler(bundles);
|
|
160
|
-
const trafficByUrlMap = Object.fromEntries(
|
|
161
|
-
|
|
162
|
-
);
|
|
157
|
+
// traffic acquisition data per url - uncomment this when required
|
|
158
|
+
// const trafficByUrl = trafficAcquisition.handler(bundles);
|
|
159
|
+
// const trafficByUrlMap = Object.fromEntries(
|
|
160
|
+
// trafficByUrl.map(({ url, ...item }) => [url, item]),
|
|
161
|
+
// );
|
|
163
162
|
const formVitals = {};
|
|
164
163
|
|
|
165
164
|
globalFormSourceSet.forEach((source) => {
|
|
@@ -175,7 +174,8 @@ function handler(bundles) {
|
|
|
175
174
|
const key = formSourceMap[url].has(source) ? generateKey(url, source) : url;
|
|
176
175
|
acc[key] = acc[key] || initializeResult(url);
|
|
177
176
|
acc[key].pageview[userAgent] = acc[key].pageview[userAgent] || weight;
|
|
178
|
-
|
|
177
|
+
// Enable traffic acquisition for persistence by uncommenting this line
|
|
178
|
+
// acc[key].trafficacquisition = trafficByUrlMap[url];
|
|
179
179
|
acc[key].formsource = source;
|
|
180
180
|
METRICS.filter((metric) => metrics[metric].sum) // filter out user-agents with no form vitals
|
|
181
181
|
.forEach((metric) => {
|