@adobe/spacecat-shared-rum-api-client 2.18.8 → 2.18.9

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,10 @@
1
+ # [@adobe/spacecat-shared-rum-api-client-v2.18.9](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.18.8...@adobe/spacecat-shared-rum-api-client-v2.18.9) (2025-01-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **rum-api-client:** only consider earned traffic in hi-org-lo-ctr ([#565](https://github.com/adobe/spacecat-shared/issues/565)) ([f7a2019](https://github.com/adobe/spacecat-shared/commit/f7a20193844f40938032a4236f55241fcdefb8d4))
7
+
1
8
  # [@adobe/spacecat-shared-rum-api-client-v2.18.8](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.18.7...@adobe/spacecat-shared-rum-api-client-v2.18.8) (2025-01-24)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-rum-api-client",
3
- "version": "2.18.8",
3
+ "version": "2.18.9",
4
4
  "description": "Shared modules of the Spacecat Services - Rum API client",
5
5
  "type": "module",
6
6
  "engines": {
@@ -13,7 +13,7 @@
13
13
  import trafficAcquisition from '../traffic-acquisition.js';
14
14
  import { getCTRByUrlAndVendor, getSiteAvgCTR } from '../../common/aggregateFns.js';
15
15
 
16
- const DAILY_EARNED_THRESHOLD = 5000;
16
+ const DAILY_EARNED_THRESHOLD = 3000;
17
17
  const CTR_THRESHOLD_RATIO = 0.95;
18
18
  const DAILY_PAGEVIEW_THRESHOLD = 1000;
19
19
  const VENDORS_TO_CONSIDER = 5;
@@ -94,8 +94,8 @@ function convertToOpportunity(traffic) {
94
94
  }
95
95
 
96
96
  function hasHighOrganicTraffic(interval, traffic) {
97
- const { earned, owned } = traffic;
98
- return earned + owned > DAILY_EARNED_THRESHOLD * interval;
97
+ const { earned } = traffic;
98
+ return earned >= DAILY_EARNED_THRESHOLD * interval;
99
99
  }
100
100
 
101
101
  function hasLowerCTR(ctr, siteAvgCTR) {