diff --git a/src/lib/utm.ts b/src/lib/utm.ts index a56d8fd7bc..77dd5ca8e7 100644 --- a/src/lib/utm.ts +++ b/src/lib/utm.ts @@ -41,8 +41,10 @@ async function upsertParams(params: Record) { export function handleIncomingURL(url: string) { const {searchParams} = new URL(url, 'http://throwaway.com') const params = Object.fromEntries( - Array.from(searchParams.entries()).filter(([key]) => - key.startsWith('utm_'), + Array.from(searchParams.entries()).filter( + ([key]) => + // TODO handle others? + key.startsWith('utm_') || key === 'gclid' || key === 'dclid', ), )