Please find your results below

How to Easily Set Up Dynamic Remarketing for Your Shopify Store

Shopify homepage

Shopify is one of the most powerful and versatile e-commerce platforms on the market, but like any great product, you only get out of it what you put into it. There are countless ways in which you can optimize your Shopify store for greater conversions, but today we’re going to talk specifically about dynamic remarketing. With just a bit of extra code, you can skyrocket your conversions by advertising to the very visitors who have already expressed interest in your products.

What is Dynamic Remarketing?

Remarketing enables you to post advertisements to individuals who have already visited your site and explored your products. Dynamic remarketing is simply a highly targeted variation of this practice, which advertises the specific products that these visitors have already viewed. Dynamic remarketing has tremendous conversion potential, because it eliminates all of the guesswork from advertising and provides further enticement to potential buyers.

Dynamic Remarketing in Shopify

To incorporate dynamic remarketing into your Shopify store, simply add the following code to your Theme.liquid template (make sure to replace the conversion ID in the example below with your own conversion ID).

{% if template contains ‘index’ %}
<script type=”text/javascript”>
var google_tag_params = {
ecomm_pagetype: ‘home’,
};
</script>
{% elsif template contains ‘collection’ %}
<script type=”text/javascript”>
var google_tag_params = {
ecomm_pagetype: ‘category’,
};
</script>
{% elsif template contains ‘product’ %}
<script type=”text/javascript”>
var google_tag_params = {
ecomm_prodid: ‘{{ product.id }}’,
ecomm_pagetype: ‘product’,
ecomm_totalvalue: {{ product.price | money_without_currency | remove: ‘,’ }}
};
</script>
{% elsif template contains ‘cart’ %}
<script type=”text/javascript”>
var google_tag_params = {
ecomm_prodid: [{% for item in cart.items %}'{{item.product.id}}'{% unless forloop.last %},{% endunless %}{% endfor %}],
ecomm_pagetype: ‘cart’,
ecomm_totalvalue: {{cart.total_price | money_without_currency | remove: ‘,’ }}
}
</script>
{% elsif template contains ‘search’ %}
<script type=”text/javascript”>
var google_tag_params = {
ecomm_pagetype: ‘searchresults’
}
</script>
{% else %}
<script type=”text/javascript”>
var google_tag_params = {
ecomm_pagetype: ‘other’,
};
</script>
{% endif %}

<!– Google Code for Remarketing Tag –>
<!————————————————–
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
—————————————————>
<script type=”text/javascript”>
/* <![CDATA[ */
var google_conversion_id = 948315090;
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/948315090/?value=0&amp;guid=ON&amp;script=0″/>
</div>
</noscript>

For Thank You Pages
Add this code to: Settings > Checkout > Additional content and scripts
(Remember to replace the conversion ID with your own)

<script type=”text/javascript”>
var google_tag_params = {
ecomm_prodid: [{% for line_item in order.line_items %}'{{ line_item.id }}'{% unless forloop.last %},{% endunless %}{% endfor %}],
ecomm_pagetype: ‘purchase’,
ecomm_totalvalue: {{order.total_price  | money_without_currency | remove: ‘,’}},
};
</script>
<!– Google Code for Remarketing Tag –>
<!————————————————–
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
—————————————————>
<script type=”text/javascript”>
/* <![CDATA[ */
var google_conversion_id = 948315090;
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/948315090/?value=0&amp;guid=ON&amp;script=0″/>
</div>
</noscript>

Coalition TechnologiesTake Your Shopify Store to the Next Level

At Coalition Technologies, we help Shopify stores to increase their traffic, maximize their revenue, and exceed their business objectives. Just check out our portfolio and learn more about the work we’ve done for Shopify customers. We are a certified Shopify Partner with an unparalleled track record of success, and we employ some of the nation’s leading designers, developers, and online marketers. If you’re not yet reaching your full e-commerce potential, call us today at (310) 827-3890 for a free quote. Let us help you turn your online store into an e-commerce empire.

Scroll to top