Disable Advertising Features

Because advertising features can be enabled through your Google Analytics admin settings, there may be cases where you need to disable them programmatically.

To disable Advertising Features with gtag.js, set allow_ad_personalization_signals to false:

gtag('config', 'GA_MEASUREMENT_ID', { 'allow_ad_personalization_signals': false });