AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

3.7K members online now
3.7K members online now
Get started with Google Ads - learn the basics to get set up for success
Guide Me

Remarketing with Universal Analytics - passing array of product ids

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭


I'm trying to set up remarketing using the google analytics integration.

I want to pass all the product id's in a cart - I could do this using the adwords snippet by doing the following:

flight_destid: ["123", "456"]

I cannot see how do the equivalent using analytics and custom dimensions?

Thanks for any help.

Remarketing with Universal Analytics - passing array of product ids

Follower ✭ ✭ ☆
# 2
Follower ✭ ✭ ☆

Hi @Alan W,


Welcome to the community!


Reading your description above, I believe you need the below guide may help you....


If you look at #5 it will walk you through how to integrate custom dimensions and pull them into GA.


You will need to add some additional code which will look something like this following ...


ga(‘set’,’dimension1′, <ecomm_prodid> ); // REQUIRED Product ID value, e.g., 12345, 67890


when implementing the above code, you will need to set the dimension as the index number and the <ecomm_prodid> will be the server-side variable of which you will be able to pass through the product ids.


If you have any other questions, please feel free to reach out Smiley Happy.