dynamic remarketing variables from data layer

Solved
robertbond
New Member
3 0 0

Hi there. I've created a datasource in google ads, and I have a container and tag created in for it in tag manager. The instructions provided by google ads are as follows:

 

Create a new tag in Google Tag Manager. Make sure you select the "Google Ads Remarketing" tag type and use the conversion ID: xxxx. 

Then, map the data layer information to your remarketing tag.

 

The last step is throwing me for a loop. I know I can go ahead and generate my own JS datapoints for this, but I don't want to duplicate variables that already supposedly exist. I've heard I can access shopify analytics values in javascript through window.ShopifyAnalytics.meta, and I've heard you can access GA variables through js as well. But I can't find a reference to the actual available variables/values anywhere.

 

So far plus support and google ads support have given me nothing. Can anyone help? I'd prefer to do this in google tag manager if possible.

 

Thanks!

 

 

Accepted Solution (1)
Czarto
Shopify Partner
73 2 28

This is an accepted solution.

Hi Robert,

 

I struggled with implementing dynamic remarketing with GTM, so I instead just used the gtag implementation. For me, it's simpler and less error prone.

 

Full writeup on how I did it here:

https://business.czarto.com/2017/02/07/shopify-dynamic-remarketing-setup/

 

Hope this helps,

 

Best,

Alex

View solution in original post

Replies 5 (5)
Czarto
Shopify Partner
73 2 28

This is an accepted solution.

Hi Robert,

 

I struggled with implementing dynamic remarketing with GTM, so I instead just used the gtag implementation. For me, it's simpler and less error prone.

 

Full writeup on how I did it here:

https://business.czarto.com/2017/02/07/shopify-dynamic-remarketing-setup/

 

Hope this helps,

 

Best,

Alex

AugustoCesar
Tourist
6 0 1

Hello Czarto,

I've had the same problem, tried to set up as you described on your page but did not worked.

Could you let me know if have another snipppet or how can I make it works?

 

Thanks

 

Augusto

Czarto
Shopify Partner
73 2 28

Hi Augusto,

What error did you receive, or what exactly didn't work?

What is your site's country and/or currency? (Perhaps it's a currency the script does not currently support)

 

Best

Alex

Skydiamond
New Member
1 0 0

Hi Czarto,

It looks like the Checkout script has the Conversion ID wrapped with double quotes where the Main script does not have the conversion ID wrapped in Double quotes. Should the double quotes be wrapping the Conversion ID?

Czarto
Shopify Partner
73 2 28

Hi ,

It should be double quotes to be safe. (So the main script should change).

I've updated the code in Github: https://github.com/Czarto/ShopifyScripts/blob/master/snippets/adwords-remarketing.liquid

 

Thanks

Alex