You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on Lighthouse documentation, it's possible to pass that argument. I've tried passing just the URL, without brackets, it didn't work, then I tried using the brackets without the asterisk and it didn't help. Any idea how to block requests for this url: www.google-analytics.com/analytics.js?
My goal is to perform audit reports but without notifying google analytics about it, since running 100-200 tests on websites that have maybe 1, 2000 monthly visitors would mess the data.
The text was updated successfully, but these errors were encountered:
Actually, after a little bit of digging, figured it out. I was using blocked-url-patterns instead of blockedUrlPatterns.
The full code that's working properly from what I can see is:
Hi there,
I'm trying to pass an argument to the lighthouse, which would block Google Analytics.
Here's the code from config.json.
"lighthouseFlags": { "output": ["html", "csv"], "emulatedFormFactor": "desktop", "blocked-url-patterns": [ "*www.google-analytics.com/analytics.js*" ] }
Based on Lighthouse documentation, it's possible to pass that argument. I've tried passing just the URL, without brackets, it didn't work, then I tried using the brackets without the asterisk and it didn't help. Any idea how to block requests for this url: www.google-analytics.com/analytics.js?
My goal is to perform audit reports but without notifying google analytics about it, since running 100-200 tests on websites that have maybe 1, 2000 monthly visitors would mess the data.
The text was updated successfully, but these errors were encountered: