diff --git a/packages/spacecat-shared-rum-api-client/src/functions/total-metrics.js b/packages/spacecat-shared-rum-api-client/src/functions/total-metrics.js index 9f35dd8d..441180a9 100644 --- a/packages/spacecat-shared-rum-api-client/src/functions/total-metrics.js +++ b/packages/spacecat-shared-rum-api-client/src/functions/total-metrics.js @@ -21,7 +21,7 @@ function handler(bundles) { ? bundle.weight : 0)); const totalPageViews = dataChunks?.totals?.traffic_domain?.sum; - const totalCTR = dataChunks?.totals?.ctr?.sum; + const totalCTR = dataChunks?.totals?.ctr?.sum / dataChunks?.totals?.ctr?.weight; return { totalPageViews, totalCTR,