Skip to content

armgit / umami

Public Imported from GitHub
0

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.

Ignore missing website id.

Mike Cao4af275a7ab62
diff --git a/src/pages/api/send.ts b/src/pages/api/send.ts
index fb4e90c74..412f07d12 100644
--- a/src/pages/api/send.ts
+++ b/src/pages/api/send.ts
@@ -111,6 +111,10 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
session.iat = iat;
+ if (!session.websiteId) {
+ return;
+ }
+
if (type === COLLECTION_TYPE.event) {
// eslint-disable-next-line prefer-const
let [urlPath, urlQuery] = safeDecodeURI(url)?.split('?') || [];