Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Use bigint.
Brian Cao4d41527f9400
diff --git a/lib/types.ts b/lib/types.tsindex 2e1ed986c..2bff72b9b 100644--- a/lib/types.ts+++ b/lib/types.ts@@ -104,7 +104,7 @@ export interface WebsiteEventDataFields {field: string;type: number;value?: string;- total: number;+ total: bigint;}export interface WebsitePageviews {diff --git a/pages/api/event-data/stats.ts b/pages/api/event-data/stats.tsindex 2b9f4a395..00b7f5b91 100644--- a/pages/api/event-data/stats.ts+++ b/pages/api/event-data/stats.ts@@ -35,7 +35,7 @@ export default async (obj.records += row.total;return obj;},- { fields: results.length, records: 0 },+ { fields: results.length, records: BigInt(0) },);return ok(res, data);