Cloudflare pages on subdomains not automatically set up in web analytics
domain:
pepper.fyi
I’ve hosted a site on Cloudflare pages, and by default, it has a pages.dev domain. I’ve added my own custom domain (and subdomain, boids-react.pepper.fyi), but in web analytics, only the pepper.fyi shows up in analytics. boids-react.pepper.fyi doesn’t show up. In the DNS entry list, there’s a CNAME entry that maps boids-react to boids-react.pages.dev, and it’s proxied. I’ve even added a JS snippet since CF tells me that it doesn’t belong to any hostnames under my account, but it still shows 0 views even if i accessed the site multiple times using the boids-react.pepper.fyi URL with different devices.5 Replies
On the 1st screenshot, note the 'automatic setup' for
pepper.fyi
you basically enabled automatic injection for the pepper.fyi entry's JS snippet for your entire zone (so including any proxied subdomains)
could be that it's overriding the JS snippet you got manually added for boids-react.pepper.fyi
yeah its twice in there
disable the automatic injection on the pepper.fyi entry and you should be good to gois this the boids or pepper.fyi
oh i see
let me check it out rq
alternatively you can only keep the
pepper.fyi entry, and just filter by subdomain/hostname when you want to lookup analytics for a specific projecti see
ah i understand it now
thanks sm
np