Set up the User ID
To set up the User ID feature, you must first enable it in your Analytics account and then implement it in your tracking code. You also have to create a User ID view to analyze User ID data in your Analytics reports. Learn more about the User ID and read the about the User ID limits before implementing this feature.
Follow the User ID setup flow in your Analytics account to enable this feature and create a new User ID view.In this article:
Find the User ID setup flow in your account
The User ID is set at the property level. To find a property, click Admin, then select an account and a property. From the Property column, click Tracking Info then User ID.
Follow the step-by-step flow. Click the blue buttons to complete an action and move on to the Next step. After you complete a step, you can click edit at any time to revise your selections.
Review the User ID Policy
In this first step of the setup flow, toggle the switch to ON to indicate that you’ve read and agreed to the User ID Policy. Agreeing to the policy enables the feature in your account. Click Next Step to continue through the flow.
Set up the User ID in your tracking code
After you enable the User ID by agreeing to the policy, you must implement the User ID in your tracking code. To use the User ID, you must be able to generate your own unique IDs, assign IDs to new users and consistently reassign IDs to returning users, and include these IDs in the data you send to Analytics. This step should be completed by a developer, see the Related resources section below for more information.
You can use the User ID for both websites and mobile apps. Both types of Google Analytics views (app and web) will accept both web and app hits and report them together. When using User ID, we recommend that you maintain a consolidated view that includes all types of hits, and that you configure filtered views to isolate web and app hits as necessary.
You can also click the toggle to turn session unification OFF at this step. Learn more about session unification.
Create a User ID reporting view
User ID data can only appear in a dedicated User ID view. To see and analyze the data you collect via the User ID in your tracking code, create User ID views in your Analytics account.
Click Create to create a User ID view. Enter a Reporting View Name. You might want to include the term "User ID" in the name to help you remember that this is a special User ID view. Select a Reporting Time Zone. Click Create.
You can also create more User ID views anytime on a User ID property by following the standard process on how to create a new view.
User ID Views can't be converted to standard views, and standard views cannot be converted to User ID views. Only new views added to a User ID enabled property can be designated as User ID Views.
For details on how to add the User ID to your tracking code, refer to the instructions in the Developer Guide for your specific environment: