Web Analytics beacon from own domain

Hello, is there a way to load the web analytics beacon from my own domain (proxied through Cloudflare)? The beacon loads from static.cloudflareinsights.com, can this be changed to mydomain.com/cdn-cgi/scripts/ for example?

My site doesn’t initiate requests to any external domain by default, so it would be nice to have the analytics beacon load “internally” as well. I see that some Cloudflare scripts, like the one for email obfuscation load via /cdn-cgi/ instead of a Cloudflare domain.