Skip to content

Commit e8c0617

Browse files
committed
fix(dashboard): canonical Google Ads favicons via ads.google.com
Map googleadservices, googleads doubleclick, syndicatedsearch.goog, and googlesyndication hosts to one favicon host for consistent UI with referrer labels.
1 parent 6ee0aa9 commit e8c0617

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/dashboard/components/analytics/favicon-image.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ interface FaviconImageProps {
1515
const hostnameRegex = /^https?:\/\//;
1616
const wwwRegex = /^www\./;
1717

18-
/**
19-
* Maps CDN/plugin domains to their canonical brand domains for favicon lookup
20-
*/
2118
const FAVICON_DOMAIN_MAP: Record<string, string> = {
2219
"framercdn.com": "framer.com",
2320
"plugins.framercdn.com": "framer.com",
@@ -30,6 +27,10 @@ const FAVICON_DOMAIN_MAP: Record<string, string> = {
3027
"checkout.stripe.com": "stripe.com",
3128
"billing.stripe.com": "stripe.com",
3229
"invoice.stripe.com": "stripe.com",
30+
"googleadservices.com": "ads.google.com",
31+
"googleads.g.doubleclick.net": "ads.google.com",
32+
"syndicatedsearch.goog": "ads.google.com",
33+
"googlesyndication.com": "ads.google.com",
3334
};
3435

3536
function getFaviconDomain(hostname: string): string {

0 commit comments

Comments
 (0)