The CTR calculation was incorrectly summing up individual CTR values, resulting in inflated percentages. Now calculates CTR properly by dividing total clicks by total impressions.
Previous Implementation:
CTR was calculated by adding up individual CTR percentages
This resulted in artificially high CTR values
For example: [10%, 15%, 20%] => 45% (incorrect)
New Implementation:
CTR is now calculated using (total clicks / total impressions) * 100
This provides the actual click-through rate across all data
Issue at #233
The CTR calculation was incorrectly summing up individual CTR values, resulting in inflated percentages. Now calculates CTR properly by dividing total clicks by total impressions.
Previous Implementation:
New Implementation:
This fix ensures accurate CTR reporting in the analytics dashboard.
Changes: