Liquid, JavaScript, themes, sales channels
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!
Solved! Go to the solution
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
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
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
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
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?
Hi Skydiamond,
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
Explore the 30-30-30 rule, a dynamic social media strategy for new businesses. Learn how t...
By Trevor Sep 20, 2023Discover how to leverage the often overlooked footer of your ecommerce site to gain custom...
By Skye Sep 15, 2023In this blog, we’ll be shining a light on Shopify Partners, Experts, and Affiliates. Who a...
By Imogen Sep 13, 2023