Web pages often send tracking requests in the background. In Playwright tests you can block these requests to isolate page behaviour.
page.route() lets you intercept matching requests. Calling route.abort() inside the handler prevents the request from reaching the server.
page is already available. No setup required — you can block requests matching the **/analytics** pattern directly with page.route.
Several correct URL patterns are accepted: full path, glob, or substring — all work.