title: Is there a way to put Google Analytics for web into "dry run" mode like the GA mobile SDKs?
body: <p>In Google Analytics mobile SDKs for both Android and iOS there is a flag you can set to put them into what's called "dry run" mode. Without changing any of your code, events won't be sent to Google when this is flipped on. Here's the documentation for the feature on <a href="https://developers.google.com/analytics/devguides/collection/android/v4/advanced#testing" rel="nofollow">Android</a> and <a href="https://developers.google.com/analytics/devguides/collection/ios/v3/advanced#testing" rel="nofollow">iOS</a>.</p>
  
  <p>This is really helpful for avoiding event tracking locally or in development and testing environments.</p>
  
  <p>My question is whether there is any API in Google Analytics for web that works identically? I can't seem to find anything in the docs.</p>