Pages with custom domain, web analytics not working for custom domain

I have a Nuxt Static app on Cloudflare pages. I have 2 custom domains; domain.com and www.domain.com
These are both working, as is the default domain provided…in web analytics settings only the hostname of the default Cloudflare domain is listed and therefore, I am pretty sure only analytics from that domain is being captured.