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
User | RANK |
---|---|
21 | |
20 | |
13 | |
11 | |
8 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023