This document describes a legacy version of the Android SDK. If your new to Analyitcs, use the latest SDK. Learn more

Optional Features

Stay organized with collections Save and categorize content based on your preferences.

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.

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