What is Web analytics?
A tool that counts your visitors and shows which pages they read. Google Analytics and Cloudflare Web Analytics are two.
Analytics works by a small script in every page. In Astro, add it to your layout with is:inline so Astro leaves it as written. Cloudflare Web Analytics uses no cookies, so it usually needs no cookie banner.