To log Google Analytics calls in TestCafe, you can use the TestCafe RequestLogger feature. This feature allows you to intercept and log HTTP requests made by your application during the test execution.
First, create a RequestLogger instance in your TestCafe test file and define the conditions for logging Google Analytics calls. You can specify the URL, headers, method, and other parameters for filtering Google Analytics requests.