From 90d4b1c009b33307e10f637bc0d31892e09ef001 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 10 Jul 2024 11:08:41 +0000 Subject: [PATCH] include events in chart data --- lib/analytics.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/analytics.js b/lib/analytics.js index 1a410b5..9208200 100644 --- a/lib/analytics.js +++ b/lib/analytics.js @@ -96,7 +96,6 @@ function calculateReferrersBreakdown (data, max) { function calculateChartData (data, resolution, now = Date.now()) { const mapped = data.reduce((acc, curr) => { - if (curr.t === 'event') return acc const normalizedDate = normalizeDate(curr.d, resolution) const existing = acc.get(normalizedDate)