I have a Cloudflare Pages website with Web Analytics enabled, and see a couple possible performance optimizations.
- The script loads from a domain other than my Cloudflare Pages domain, which adds a DNS lookup and HTTPS handshake.
- it uses
async, like Google Analytics uses.
defer required for Real User Monitoring?
It’d be nice to see these enabled by default and for it to not add HTML comments around the appended script tag in the HTML.