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 441180a9..0a932c15 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 @@ -20,7 +20,7 @@ function handler(bundles) { dataChunks.addSeries('ctr', (bundle) => (bundle.events.some((e) => e.checkpoint === 'click') ? bundle.weight : 0)); - const totalPageViews = dataChunks?.totals?.traffic_domain?.sum; + const totalPageViews = dataChunks?.totals?.traffic_domain?.weight; const totalCTR = dataChunks?.totals?.ctr?.sum / dataChunks?.totals?.ctr?.weight; return { totalPageViews,