To provide a comprehensive and consolidated view of your Audiences and make audience management and optimization simpler, you’ll find the following improvements in Google Ads:
- New audience reporting: Go to Audiences within the Campaigns menu
for detailed reporting about audience demographics, segments, and exclusions. You can also easily manage your audiences from this report page. Learn more About Audience reporting.
- New terms: We’re using new terms on your audience report and throughout Google Ads. For example, “audience types” (these include custom, in-market, and affinity) are now referred to as audience segments and “remarketing” is now referred to as “your data”. Learn more about the Updates to Audience terms and phrases.
You can create data segments with User ID by uploading customer segments keyed on custom generated User IDs. These segments that use User ID are eligible for targeting across Google properties, including Search, Shopping, and YouTube.
On this page
- Benefits
- How data segments with User ID work
- Option 1: Set up the User ID parameter in your global site tag
- Option 2: Set up the User ID parameter in Google Tag Manager
- Upload “user_ids” data using the Google Ads API
Benefits
Here are some of the benefits of using data segments with User ID:
- Advantages over Customer Match
- Data segments with User ID increase targeting coverage to signed-out traffic for Search and YouTube.
- Advantages over data segments for Search Ads
- Offline segmentation: Savvy advertisers have robust offline backend systems to build highly tailored segments from their CRM data. These segments utilize both historic and dynamic attributes, which can’t always be passed via the pings that use your data segments for Search Ads.
- Post-facto state management: Your data segments for Search Ads is dependent on page views to drive list changes. Therefore, targeting newly identified customer segments would require the user to visit the advertiser website first (in order to be added to a new segment for Search Ads).
How data segments with User ID work
To implement a data segment with a User ID, add a top-level parameter called "user_id" to your global site tag (this value is non-PII). user_id is a unique identifier that you internally associate with a certain customer. With this parameter, an advertiser can add a User ID Tag to collect User Lists that are matched to the Google cookie space without providing personally identifiable information (PII) to Google. When that customer visits your website, the g tag javascript embedded in the website passes the user_id to Google, enabling Google to associate the given “user_id” with the user’s Google cookies. This association lets you build data segments with User ID by uploading lists of user_ids via the Google Ads UI or API.
Option 1: Set up the User ID parameter in your global site tag
- Go to Data Manager within the the Tools menu
.
- Select the 3-dot icon
on the “Google Ads” tag card.
- Select Edit source.
- Alternatively, you can also select Manage, then select the tag to "Edit".
- Expand the Advanced settings section, then select the “user_id” checkbox.
- Note: If the checkbox is grayed out, ensure the account is on the Customer Match allowlist (source).
Note: The user_id checkbox may be grayed out if you aren't on the Customer Match allowlist. Learn More about Customer Match policy
- Select Save and Continue.
- If you haven't already installed the gtag.js global site tag on your site, follow these instructions to implement it.
- Implement the event snippet to pass the
user_idparameter when users log in or register on your website (or on any page where you have access to a stableuser_idfor the current user). Refer to the additional instructions below.
You're responsible for generating user_id values for every user and ensuring that those values are stable and consistent for each user across sessions, browsers, and devices.
Usually, this can be achieved if your website offers a user account functionality letting users register and sign in. Upon registration, you should generate a unique identifier for the user and pass it to Google Ads via the tag. When the same user comes back to your site and signs-in again, you should pass the same identifier again via the user_id parameter.
An example of a way to pass the user_id parameter via gtag.js is shown below:
The sample snippet above uses “login” as event name, but you can pass any event name that you want. The only requirement is to include “user_id” as part of the event data argument.
Note that if you have already implemented the event snippet on certain pages of your site (for instance, to capture dynamic remarketing parameters), you may add the user_id parameter to your existing event snippets, as shown here:
<script>
gtag('event', 'page_view', {
'send_to': 'AW-CONVERSION_ID',
'user_id': 'replace with value',
'value': 'replace with value',
'items': [{
'id': 'replace with value',
'google_business_vertical': 'retail'
}]
});
</script>
Important
When assigning User IDs, there are three important things to remember:
- Each user must have a unique User ID.
- For each user, the
user_idparameter must be the same each time when they visit your website. For example, if Mary visits your website in the morning and you upload theuser_idto create data segments with User ID via the Google Ads upload API, you must provide the sameuser_idfor both cases. - You may not pass Google personally identifiable information (PII) in the
user_id.
Option 2: Set up the User ID parameter in Google Tag Manager
Google Tag Manager is a tag management system that allows you to quickly and easily update tags and code snippets on your website. You can use Google Tag Manager to install your global site tag.
- Sign in to your Tag Manager account.
- Select Tags.
- Select the tag name you want to edit.
- Set your User ID variable.
- Select Save to complete your tag setup.
- Preview and confirm your changes, then select Publish.
Upload “user_ids” data using the Google Ads API
Account owners or administrators can use the Google Ads API to upload data files of “user_ids” and manage the User IDs of their audience segments. Advertisers can upload a data file, add or remove customer data, or edit configurations through the API. Learn more about Remarketing section of the Google Ads API
User ID data aren't considered PII data, and it is strongly recommended that advertisers hash User ID data before uploading to Google. Make sure that User IDs uploaded are identical to those sent to Google in the global site tag.
The user_id parameter can also be used for Google Ads cross-device linking.
