Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fixed an issue when custom event filter returned incorrect dates for the events

Blue Mousebc7161706bff
diff --git a/src/analytics/analytics.service.ts b/src/analytics/analytics.service.ts
index 29dbeb928..1ab1ba800 100644
--- a/src/analytics/analytics.service.ts
+++ b/src/analytics/analytics.service.ts
@@ -622,7 +622,7 @@ export class AnalyticsService {
query += ' UNION ALL '
}
- query += `select count() from customEV where ${
+ query += `select ${i} index, count() from customEV where ${
paramsData.params.ev_exclusive ? 'NOT' : ''
} ev = {ev:String} AND pid = {pid:FixedString(12)} and created between '${
xM[i]