Page speed is a ranking factor, a conversion factor, and a user experience factor. Yet most websites carry 40–80KB of analytics JavaScript that loads on every single page.
The analytics script weight problem
- Google Analytics 4 (gtag.js): ~45KB gzipped, sets 3–5 cookies
- Adobe Analytics: ~55KB gzipped, multiple cookies
- Hotjar: ~100KB+, multiple cookies
- AI Infos Web Statistics: ~2KB, zero cookies
On a site with 1 million monthly page views, switching from GA4 (~45KB) to a 2KB alternative saves roughly 43GB of bandwidth per month.
The rendering pipeline impact
Standard Google Analytics loads synchronously in the document head. The browser must download, parse, and execute the script before continuing to render the page — adding 200–800ms to Time to Interactive on a median mobile connection. A lightweight script with defer runs after the page has rendered, adding zero milliseconds to perceived load time.
What you gain from switching
- Faster LCP (Largest Contentful Paint) — critical for Google's Core Web Vitals
- Improved FID / INP — less JavaScript executing during page load
- No cookie banner — removes 20–40KB of consent management JavaScript
- Higher ad quality scores — faster pages get better Quality Scores in Google Ads
How to measure the improvement
- Run a Lighthouse audit before switching and note your Performance score
- Replace GA4 with the 2KB lightweight script and remove your consent banner
- Run Lighthouse again
Most sites see a 5–15 point Lighthouse improvement. E-commerce sites often report measurable conversion rate improvements from faster load times. Core Web Vitals are a confirmed Google ranking factor — removing a bloated analytics script is one of the highest-ROI technical SEO changes you can make.