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!

remove unused exposts

Blue Mouse62bf9b9b6ab5
diff --git a/web/app/utils/referrers.ts b/web/app/utils/referrers.ts
index a0698b22d..d2d8a2740 100644
--- a/web/app/utils/referrers.ts
+++ b/web/app/utils/referrers.ts
@@ -5,10 +5,9 @@ type ReferrerMapping = {
patterns: string[]
}
-// Minimal curated map; extend as needed via JSON
-export const REFERRER_MAP: ReferrerMapping[] = MAP as ReferrerMapping[]
+const REFERRER_MAP: ReferrerMapping[] = MAP as ReferrerMapping[]
-export const extractHostname = (value: string | null | undefined): string | null => {
+const extractHostname = (value: string | null | undefined): string | null => {
if (!value) return null
try {
const url = new URL(value)
@@ -47,7 +46,7 @@ const matchByMap = (host: string): string | null => {
return null
}
-export const getCanonicalRefGroup = (refValue: string | null | undefined): { key: string; name: string } | null => {
+const getCanonicalRefGroup = (refValue: string | null | undefined): { key: string; name: string } | null => {
const value = (refValue || '').trim()
// If a non-http(s) scheme is present, keep as-is (do not group)
const scheme = value.match(/^([a-z][a-z0-9+.-]*):/i)?.[1]