Analytics, advertising pixels, heatmaps, A/B testing and marketing automation tools usually arrive as one line of code pasted into a site. That line then fetches whatever the provider decides to send, from the provider's own servers. Google's guide to third-party JavaScript lists analytics and A/B testing scripts among the usual suspects, and notes they can trigger further requests of their own. This article shows how to put a number on each tool with Chrome DevTools, so decisions about keeping or adding one are based on what it really costs your visitors.
Set up a fair measurement
- Open the page in a private window in Chrome, so no earlier cookie choice or cached file gets in the way.
- Open DevTools (F12) and the Network panel. Tick Disable cache; the Network features reference explains that this switches off the browser cache.
- Reload. The status bar at the bottom shows the total transferred and the total resources (uncompressed). Note the transferred figure: that's the one closest to what a carbon check counts. The reference points out that it only covers requests logged since DevTools was opened, which is why you reload with it open.
If you've not done this before, our guide on how to check your page weight walks through the panel in more detail.
Sort the requests by company
web.dev defines third-party scripts as code not written by you and served from third-party servers, so the domain is a good way to tell tools apart. Chrome's Network panel tutorial shows how to right-click the header of the request table and add a Domain column. Click any column header to sort by it, and requests from the same company line up together.
- Show only other companies' files. Under More filters, tick 3rd-party requests. The reference describes these as requests whose origin differs from the page's origin.
- Focus on one tool. Type
domain:followed by the tool's domain into the filter box. To see everything except that domain, tick Invert next to the filter box. - Spot the big ones. Sort by the Size column. The reference defines it as the response headers plus body, as delivered by the server.
The filtered list is a useful inventory, but adding up rows by hand is fiddly, and a tool can trigger requests to other domains. That's why the next step is more reliable.
Block one tool and reload
The cleanest way to see what a tool adds is to take it away and compare. DevTools can block requests for you, without touching your live site. According to the Request conditions documentation, you right-click a request in the Network panel and choose Block request; Chrome's announcement for Chrome 145 says this can apply to the exact URL or the entire domain.
- Note the transferred total with everything loading normally.
- Right-click the tool's main script and block its domain. The Request conditions drawer opens with the new rule, and Enable blocking and throttling is ticked.
- Reload. Blocked requests show in red with the status
(blocked:devtools). Note the new total. The difference is roughly what that tool adds, including follow-on requests it would have triggered. - Untick the rule, block the next tool, and repeat.
Blocking only affects your browser, and the documentation notes that closing DevTools turns it off. If you block a tag manager, everything it loads disappears too, so block individual tools where you can.
Reading the difference fairly
Suppose blocking one tool lowers the transferred total by 200 kB. Under the Sustainable Web Design Model v4, which GreenTracer uses, that is about 0.030 g CO₂e per page view (about 0.024 g on a host listed as green), for every visit that loads it. The number is illustrative: measure your own.
- Consent changes the picture. A GreenTracer check doesn't accept cookie banners, so tools that wait for consent won't appear in your result, yet visitors who accept still download them. Measure both before and after accepting; our article on cookie banners, tags and your carbon test explains why.
- Bytes aren't the whole cost. web.dev notes that third-party scripts can add connection set-up time and can hold up rendering if loaded synchronously. A small script can still slow a page.
- Repeat the test. Totals can differ from one load to the next, so run each comparison two or three times; see why repeat checks differ.
Questions before adding another tool
web.dev's advice is to favour tools that send the least code for the job, not to use the same function from two vendors (two analytics platforms, for example), to set a budget for third-party content, and to audit and clear out redundant scripts routinely. In plain terms, ask:
- Who will use the data, and for what decision? If nobody can name a person, it can wait.
- Does something we already have do this? Two tools doing the same job is exactly what web.dev warns against.
- Does it need to be on every page? A booking-funnel tool may only need the booking pages.
- What does it add when measured? Run the block-and-compare test on a staging copy, or right after installing, and write the figure down.
- When will we review it? Put a date in the diary to check whether it's still earning its place.
If code is loaded but mostly unused, see finding unused JavaScript. After removing a tool, check the page again and compare the bytes measured with your earlier report.
Sources
- Chrome DevTools: Network features reference
- Chrome DevTools: inspect network activity
- Chrome DevTools: Request conditions (blocking and throttling)
- Chrome for Developers: throttle individual network requests
- web.dev: third-party JavaScript performance
- Sustainable Web Design: estimating digital emissions (SWDM v4)



