Site and/or app owners using Google Analytics and Google Analytics for Firebase (aka “customers”) may find this a useful resource, particularly if they are businesses affected by the European Economic Area’s General Data Protection Regulation (GDPR), or California's California Consumer Privacy Act (CCPA), or other similar regulations.
For additional information, refer to Safeguarding your data.
In this article:- Disable Analytics data collection (app)
- Disable Analytics data collection (web)
- Disable advertising features (app)
- Disable advertising features (web)
- Disable advertising personalization (app)
- Disable advertising personalization (web)
- IP Anonymization
- Set the retention period for the Analytics data you collect
- User-level Data Access and Portability
- Delete end user data stored on a mobile device
- Delete end user data stored on Analytics servers
- Allow for / Disable Ads Personalization for any property
- Use the Google Analytics for Firebase iOS SDK to verify app installation
Disable Analytics data collection (app)
You can programmatically disable data collection from Android and iOS apps that use the
-
Firebase SDK (instructions)
-
Google Analytics Android SDK (instructions)
-
Google Analytics iOS SDK (instructions)
Learn more about the data that Google Analytics and Google Analytics for Firebase collect.
Disable Analytics data collection (web)
You can programmatically disable data collection from
-
Google Analytics 4 properties with gtag.js (instructions)
-
Universal Analytics properties with gtag.js (instructions)
-
Universal Analytics properties with analytics.js (instructions)
-
Universal Analytics properties with ga.js (instructions)
Users of your website can also opt out from data collection using the Google Analytics opt-out browser add-on.
Disable advertising features (app)
You can programmatically disable collection of data for advertising features from Android and iOS apps that use the:
- Firebase SDK (instructions)
- Google Analytics Android SDK (instructions)
- Google Analytics iOS SDK (instructions)
Learn more about the data that Google Analytics and Google Analytics for Firebase collect.
Disable advertising features (web)
You can programmatically disable collection of data for advertising features from:
- Google Analytics 4 properties with gtag.js (instructions)
- Universal Analytics properties with gtag.js (instructions)
- Universal Analytics properties with analytics.js (instructions)
Disable advertising personalization (app)
You can programmatically disable advertising personalization for data from Android and iOS apps that use the Firebase SDK (instructions)
Learn more about the data that Google Analytics and Google Analytics for Firebase collect.
Disable advertising personalization (web)
You can programmatically disable advertising personalization for data from:
- Google Analytics 4 properties with gtag.js (instructions)
- Universal Analytics properties with gtag.js (instructions)
- Universal Analytics properties with analytics.js (instructions)
IP Anonymization
IP anonymization is available in Google Analytics for both web and app. Learn how IP anonymization works.
Universal Analytics properties
You can anonymize IP addresses for Universal Analytics properties using
-
gtag.js (instructions)
-
analytics.js (instructions)
-
ga.js (instructions)
Google Analytics 4 properties
IP anonymization is automatically enabled for Google Analytics 4 properties when you
Automatically enabled IP anonymization cannot be disabled.
Set the retention period for the Analytics data that you collect
You can set the retention period for data you collect from
-
Universal Analytics properties (instructions)
-
Google Analytics 4 properties (for websites) (instructions)
-
Google Analytics for Firebase. You can choose to retain user data for a maximum of 14 months or retain data according to the Analytics default data-retention policy (instructions)
User-level Data Access and Portability
For Universal Analytics properties, you can pull event information for any given user identifier via the User Explorer report or the User Activity API. These features allow you to analyze and export event level data for a single user identifier. In addition, 360 customers can integrate with BigQuery to create a full export of all event data associated with their users in a single queryable repository.
For Google Analytics 4 properties, the same functionality exists within Explorations. You can pull event information for any given user identifier via the User Explorer report or the User Activity report. These features allow you to analyze and export event level data for a single user identifier. You can also use the User Activity report to delete individual user records. In addition, you can integrate with BigQuery to create a full export of all event data associated with users in a single queryable repository.
Delete end user data stored on a mobile device
The Google Analytics for Firebase SDK lets you add controls to your app so that users can delete Analytics data stored locally on their mobile devices, and reset the app-instance ID in the process. Learn more about using resetAnalyticsData
on Android and iOS.
The SDK also lets you control whether or not any Analytics data is collected from the app on a specific device. Learn more about using setAnalyticsCollectionEnabled
on Android and iOS.
Delete end user data stored on Analytics servers
You can use the Google Analytics API to honor requests from users to delete data about them from Analytics servers on a per-app, per-device basis. Learn more about the User Deletion API.
Allow for / Disable ads personalization for any property
You can control whether data collected from end users for any property may be used for ads personalization via the advanced setting to allow for ads personalization.
Use the Google Analytics for Firebase iOS SDK to register attribution with SKAdNetwork
Unless app developers choose to opt out via a static configuration flag (instructions), the Google Analytics for Firebase (GA4F) iOS SDK will automatically call, upon first open, Apple's SKAdNetwork registerAppForAdNetworkAttribution API, which provides app-install-validation information to ad networks registered with Apple.
The SKAdNetwork API has been updated for iOS 14 and will be relied on more heavily for app-install attribution due to Apple’s new privacy and security features announced in WWDC 2020, which now require app developers to obtain consent via a privacy-disclosure pop-up before using the identifier for advertisers (IDFA) to track iOS users.