Course contentsShow
← Web Development
Lesson 2209 of 2,98240. Browser DevTools Deep DiveFree lesson

Tracking Third-Party Requests

Identify external domains loading scripts, fonts, or tracking pixels to audit dependencies and privacy.

Tracking Third-Party Requests

You'll learn how to identify and audit external domains loading resources into your site—scripts, fonts, tracking pixels—to understand dependencies and privacy implications.

What Are Third-Party Requests?

When your web page loads, it often doesn't just fetch resources from your own domain. Third-party requests are HTTP requests to external domains—analytics providers (Google Analytics), social media widgets (Facebook, Twitter), advertising networks, font services (Google Fonts), CDNs, and tracking pixels. These external dependencies can impact performance, privacy, and security.

Think of your website as a restaurant kitchen. You control the main ingredients (first-party resources), but you also order pre-made sauces, bread, and desserts from outside vendors (third-party resources). You need to know who your vendors are and what they're delivering.

Why Track Third-Party Requests?

Performance audit: Third-party scripts can be slow or block your critical rendering path, appearing prominently in your request waterfall.

Privacy compliance: Many third-party services collect user data. GDPR and privacy regulations require you to know exactly what trackers are present.

Security: External scripts execute with significant privileges. You need visibility into what's loading and from where.

How to Track Them in DevTools

In the Network Panel, look at the Domain column. Any domain different from your own is third-party. You can filter requests by domain or right-click a request and select "Block request domain" to test impact.

Group requests by domain using the Network panel's grouping options to see which external providers are making the most requests or consuming the most bandwidth.

Key Takeaway: Tracking third-party requests in DevTools reveals hidden dependencies, helps you audit performance bottlenecks, and ensures you understand exactly what external services have access to your users' browsers and data.