To provide a comprehensive and consolidated view of your audiences and make audience management and optimisation simpler, you’ll find the following improvements in Google Ads:
- New audience reporting
Detailed reporting about audience demographics, segments and exclusions is now consolidated in one place. Click the Campaigns icon and open the 'Audiences, keywords and content' tab and click Audiences. 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.
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 utilise 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
- In your Google Ads account, click the Tools icon .
- Click the Shared library drop-down in the section menu.
- Click Audience manager.
- Click Audience sources from the page menu.
- Click the 3-dot icon next to 'Global site tag'.
- Click Edit source to set up a global site tag.
- Click Advanced settings then tick the user_id box.
Note: The user_id
tick box may be greyed out if you are not on the Customer Match allowlist. Learn More about Customer Match policy
- Click 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_id
parameter when users log in or register on your website (or on any page where you have access to a stableuser_id
for the current user). See 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've 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_id
parameter 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_id
to create data segments with User ID via the Google Ads upload API, you must provide the sameuser_id
for 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.
- Click on the tag name that you want to edit.
- Set your User ID variable.
- Click Save to complete your tag setup.
- Preview and confirm your changes, then click 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 are not considered PII data, and it is strongly recommended that advertisers hash User ID data before uploading to Google. Make sure that the 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. Note that if you set up data segment with User ID before 3 October 2018, you already are opted in to cross-device linking. Learn more about Advertiser cross-device linking