Take our developer survey. We want your feedback so we can learn how to improve Google Analytics, and make it an even better tool for you.

Optional Features

Enabling advertising features

After you've configured your Android app, you can optionally enable advertising features in the app to collect advertising identifiers. These features allow you to take advantage of Demographics and Interests reports.

To enable advertising features in your app, call the enableAdvertisingIdCollection method on the tracker:

// Enable Advertising Features.
mTracker.enableAdvertisingIdCollection(true);

When using these features, please make sure to review and adhere to all applicable SDK policies.