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.

remove allow_agent

Brian Cao537ddde189b0
diff --git a/pages/api/collect.js b/pages/api/collect.js
index 5e73353e1..1cff48411 100644
--- a/pages/api/collect.js
+++ b/pages/api/collect.js
@@ -12,7 +12,7 @@ import { uuid } from 'lib/crypto';
export default async (req, res) => {
await useCors(req, res);
- if (isbot(req.headers['user-agent']) && !process.env.ALLOW_AGENT) {
+ if (isbot(req.headers['user-agent'])) {
return ok(res);
}