Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Exclude session_id and user_id from number conversion in processResults function

Bill Yangf366126360cc
diff --git a/server/src/api/analytics/utils.ts b/server/src/api/analytics/utils.ts
index 6bf148c7d..a335fec84 100644
--- a/server/src/api/analytics/utils.ts
+++ b/server/src/api/analytics/utils.ts
@@ -83,6 +83,8 @@ export async function processResults<T>(
for (const key in row) {
// Only convert to number if the value is not null/undefined and is a valid number
if (
+ key !== "session_id" &&
+ key !== "user_id" &&
row[key] !== null &&
row[key] !== undefined &&
row[key] !== "" &&