Disabling display features

This guide describes how to use gtag.js to disable display features tracking.

Overview

Display features tracking can be used to enable Advertising Features in Google Analytics, such as Remarketing, Demographics and Interest Reporting, and more.

Because display features are enabled through your Google Analytics admin settings, there may be cases where you need to disable it programmatically.

To disable display features using gtag.js, set the parameter allow_display_features to false in your property's config:

gtag('config', 'GA_TRACKING_ID', { 'allow_display_features': false });

Learn more about Google Analytics Advertising Features.