[UA] Creating custom dimensions and updating your tracking code [Legacy]

Add attributes for your business vertical.
You are viewing a legacy article about Universal Analytics. Learn more about Google Analytics 4 replacing Universal Analytics.

To make the vertical-attribute information available to Analytics, you need to do two things:

  1. Create a custom dimension for each attribute
  2. Update your Analytics tracking code for each relevant web page or app screen to collect data for each attribute

When you enable Remarketing and Advertising Reporting Features, Analytics collects the information it normally does, as well as information from advertising cookies and mobile-advertising IDs when they're present.

When your users view content tagged with vertical attributes (for example, an ad for a specific shoe), then that information is passed to Analytics as custom dimensions. Analytics in turn makes that information available to your Google Ads dynamic remarketing campaign.

For example, if you update your Analytics tracking code to include the Retail attribute ecomm_prodid, then when users view those products, the product IDs are collected in Analytics and passed on to Google Ads. When those users later visit other sites on the Google Display Network, your remarketing campaign has the information it needs to show remarketing ads for those specific products.

Add attributes for your vertical

Each of the following sections includes the required and optional attributes for each vertical, along with examples of the custom dimensions you need to create in Analytics, and examples of how to modify your existing Analytics tracking code to include those attributes.

If you haven't already added the Analytics tracking code to your site or app, do that first.

When you update the tracking code on your website to add vertical attributes, add the code for the attributes just before the closing </head> tag.

If you are going to update your tags in Tag Manager, follow these instructions.

Next steps

  1. Create Remarketing Audiences in Analytics.
  2. Create attributes for Dynamic Remarketing.
  3. Create your Dynamic Remarketing campaign in Google Ads.

Related resources

Custom dimensions and metrics

Working with custom dimensions in Google Tag Manager

Was this helpful?

How can we improve it?
10954685425158569144
true
Search Help Center
true
true
true
true
true
69256
true
false
false
false
Search
Clear search
Close search
Main menu