remove www. prefix from hostname during comparison. Closes #3256

This commit is contained in:
Francis Cao 2026-01-28 17:18:03 -08:00
parent b84942b6da
commit 9339383497
5 changed files with 5 additions and 5 deletions

View file

@ -108,7 +108,7 @@ function getFilterQuery(filters: Record<string, any>, options: QueryOptions = {}
if (name === 'referrer') {
arr.push(
`and (website_event.referrer_domain != website_event.hostname or website_event.referrer_domain is null)`,
`and (website_event.referrer_domain != regexp_replace(website_event.hostname, '^www.', '') or website_event.referrer_domain is null)`,
);
}
}