How to add Google Dynamic Remarketing code in Shopify

Highlighted
Tourist
7 0 9

Hi,

I've been working on this this morning and none of the existing forum threads had the answers, so now that I've got it running I thought I'd add a post here in case anyone else is struggling with the same thing!

Where to sign up for Remarketing:
Go to your Google Adwords homepage and click on the Campaigns tab. Low down on the left hand menu there is an option called Remarketing. Follow the instructions and it will email you a custom piece of code.

Where to place your code:
You need to copy and paste this code into your Shopify template page. In your Admin, go to Themes, click Template Editor then choose theme.liquid. Paste the piece of code just above the /body closing tag.

How to customise your code:
There are three parameters in the code you need to customise. You need to fill these with the following Shopify variables:

ecomm_prodid: '{{ product.id }}',
ecomm_pagetype: '{{ template }}',
ecomm_totalvalue: '{{ product.price_min | money_without_currency }}',

Hope that helps someone :)

 

www.littlegoatgruff.co.uk Toys, clothing and more for babies and toddlers ages 0-3
8 Likes
Highlighted
New Member
11 0 0

Thanks for the info. I get a critical error but its just non standard implementation so I assume everything should work out ok.

0 Likes
Tourist
7 0 9

Hope it works out for you Jeremy.

Love the website by the way - we are big fans of Kongs in our household!

www.littlegoatgruff.co.uk Toys, clothing and more for babies and toddlers ages 0-3
1 Like
Highlighted
Shopify Partner
149 0 3

Good to see more people exploring remarketing efforts. So many store owners overlook this. We always get people going on remarketing. Especially established stores with solid traffic numbers. 

Have you tried doing anything like abandon cart retargeting yet?

Former SEO of Inc Top 500 Retailer AmericanMuscle.com who Co-Founded Online Retail Marketing Company, Rocket Dove (http://www.rocketdove.com) where we drive millions in revenue across various ecommerce industries.
0 Likes
Highlighted
New Member
11 0 0

Thank Kate! We are too, KONG makes great products.

0 Likes
Highlighted
New Member
1 0 0

Hi Kate, Not sure if you have this fully implemented yet.  I've been working on this myself.  This post details pretty well how to set up dynamic remarketing as well.  Did you happen to implement the ecomm_pagetype:'purchase' anywhere?  I have 'cart' added, but I don't think this will catch if the item was purchased or not, meaning I'll be remarketing to people who have actually executed a purchase?  This would not make so much sense for my particular product line.

0 Likes
Highlighted
New Member
4 0 0

Thanks Stacy.. I've been looking for something like this.  Can you tell me if the values you added are working well and populating your google audience lists precisely?

0 Likes
Highlighted
New Member
4 0 0

As per this thread, I have inserted the script below on my template.liquid. The problem is that Google is giving me the following error:
"Some values for the custom parameter ecomm_pagetype are missing".

My fear is that my audience lists are not being populated precisely.  Has anyone else run into this and found a solution?

This is the script in my template.liquid:

--------------------------------------------------
<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: '{{ product.id }}',
ecomm_pagetype: '{{ template }}',
ecomm_totalvalue: '{{ product.price_min | money_without_currency }}',
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 1067729617;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">;
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1067729617/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
--------------------------------------------------

0 Likes
Highlighted
New Member
4 0 0

I am having the same issue. Has anyone figured this out?

0 Likes
Highlighted
New Member
1 0 1

I've installed this tag as well and on the product pages all of the custom fields are populating.  However, on collections or category pages the product id and product total fields are blank.  Shouldn't all the products in a collection populate here?

Also on my shopping cart pages the pagetype of cart is populating but the total of all items and the product ids in the cart are not populating?  How can I correct this?

1 Like