User-ID for cross-platform analysis
The User-ID feature lets Analytics present a cross-platform, cross-device view of your users' behavior.
To use this feature, you have to be able to generate your own unique, persistent IDs, consistently assign those IDs to your users, and include the IDs along with the data you send to Analytics.
Analytics creates a single user journey from all the data that is associated with the same user ID.
You can choose one of two methods to identify user data for reporting:
- By User-ID and device: this method uses the more accurate User-ID if it is collected to identify a user and unify all related events in reporting and analysis. If no User-ID is collected, then Analytics uses a device ID, either the Analytics cookie for websites or the App-Instance ID for apps, to identify a user.
- By device: this method uses only the device ID, either the Analytics cookie for websites or the App-Instance ID for apps, to identify a user, and ignores any User-IDs that were collected.
You can find these options in Analytics Admin under Default Reporting Identity (see below).
You implement User-ID first in your site or app, and then in Analytics Admin.
In your site or app
To implement User-ID on your website via the global site tag, follow these instructions.
In Analytics Admin
After you update your site or app to collect user IDs, you can update your property configuration in Analytics Admin to change the reporting identity you want to use.
- Sign in to Google Analytics.
- Click Admin, and navigate to the property you want to edit.
- In the Property column, click Default Reporting Identity.
- Select either By User-ID and device (default setting) or By device.
- Click Save.
After you implement User-ID in your site/app and confirm the settings of your Analytics property, you can filter your reports to include only signed-in data.
Without that filter applied, you see all signed-in and signed-out data together.
When you include only signed-in users, you may notice some differences in your data since Analytics is deduplicating those users:
- Lower user counts
- Higher per-user values
You'll also see additional data like how many of those users engaged with your business on multiple platforms.