Cloudflare pages on subdomains not automatically set up in web analytics

For Workers & Pages, what is the name of the domain?

pepper.fyi

What is the issue or error you’re encountering

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, react-boids.pepper.fyi), but in web analytics, only the pepper.fyi shows up in analytics. react-boids.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.

The reason for this is that you don’t have the subdomain react-boids.pepper.fyi added as a record on the DNS tab, Please do add it and proxy it which would help with your issue.

Sorry, I had a typo. The CNAME that is set up is boids-react.pepper.fyi, which is mapped to boids-react.pages.dev.


However, I’m still not getting the orange proxied cloud under web analytics, and it tells me to put the JS snippet into my HTML.