Categories: Google Adwords Remarketing

How to add Google Dynamic Remarketing Code in Volusion

This is my another post on volusion commerce.

In this post, you are going to know , How to add google dynamic remarketing code in volusion.

Steps to add Google adwords Dynamic Remarketing in Volusion Ecommerce:

  • Go to Design  in your Admin Area.
Volusion Google Remarketing Set up – I
  • Go to Template.
  • Click on Edit HTML.
  • In the Shortcuts table on the Live Edit page, click template_xxx.html (where xxx is the number or name of your Volusion store template)
  • Inside File Editor, Add the below code just above Closing body tag .
Volusion Google Remarketing Set up – 2
<!-- Custom parameter Starts Here -->
<script type="text/javascript">
var pagetype = 'other'
var googleprice = 0;
var googleprodid ='';
var pathname = window.location.pathname;

if(pathname == "/" || pathname == "Default.asp" || pathname == "default.asp"){ /* If home page */
  pagetype = 'home';
}else
if(pathname.indexOf('-s/') > -1){/* If Category Page */
  pagetype = 'category';
}else
if(pathname.indexOf('-p/') > -1){/* If Product Page */
  pagetype = 'product';
  googleprice = jQuery('span[itemprop="price"]').text().replace(/[^0-9.]/g,'');
  googleprodid = window.global_Current_ProductCode;
}else
if(pathname.indexOf('shoppingcart') > -1 || pathname.indexOf('ShoppingCart') > -1){/* If cart Page */
  pagetype = 'cart';
  googleprice = jQuery(".pricecolor.colors_productprice b:first").text().replace(/[^0-9.]/g, '');
  var productIdArray = new Array();
  var cartquantity = $('a .cart-item-name').length;
  for (var i=0; i < cartquantity; i++) { 
        var link = $('a.cart-item-name').eq(i).attr('href');
        var substr = link.split('&'); 
        var pcode = substr[0].split('=');
        googleprodid = pcode[1].replace("%","-"); 
        productIdArray.push(googleprodid);
    }
        googleprodid = productIdArray; 
    }
else 
if(pathname.indexOf('OrderFinished') > -1 || pathname.indexOf('orderfinished') > -1){/* If confirmation Page */
  pagetype = 'purchase';
  googleprice = Order[2];
  productIdArray = new Array();
  for (var i=0; i < OrderDetails.length; i++) {
    productIdArray.push(OrderDetails[i][2]);
  }
  googleprodid = productIdArray;
};
/* GOOGLE TAG PARAM INITIALIZATION */
var google_tag_params = {
ecomm_prodid: googleprodid, 
ecomm_pagetype: pagetype,
ecomm_totalvalue: parseFloat(googleprice)
};
</script>
/* custom parameter ends here */

<!-- Google Code for Remarketing Tag -->
<script type="text/javascript">
/* <![CDATA[ */
 var google_conversion_id = XXXXXXXXXXXX;
 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/XXXXXXXXXXXX/?value=0&guid=ON&script=0"/>
</div>
</noscript>
  • Now the code on the right represents the custom parameters, append your remarketing code to this custom parameter and add same just below the closing body tag.
  • Click Save and you’re done!

for any assistance feel free to reach us by comment below or by get in touch .
Add to know about tag implements on other ecommerce site. stay tuned with us or follow our other blogs.

Note:-  Custom parameters is only required only when you have to add Dynamic Remarketing tag in your store. And if Custom code is not matching with you requirement, you can freely edit those code.

Notes On Click

Share
Published by
Notes On Click
Tags: adword remarketingadwords dynamic remarketingEcommerce trackingvolusion

Recent Posts

  • Adword Conversion Tracking
  • Google Adwords Remarketing

Conversion and Remaketing code in BigCommerce

In this blog, you will see how to add Adwords Conversion Tracking and Remarkeing Code in BigCommerce.BigCommerce is one of…

8 years ago
  • Google Analytics and Ecommerce Tracking

Ecommerce Tracking in OpenCart 2.3

Around 6 months back, I had published an article on “How to add GA e-commerce tracking in Opencart“. I am really thankful…

8 years ago
  • Google Analytics and Ecommerce Tracking

Google Analytics Definition and Common Terms

 If you have gone through our previous blog about Google Analytics, you might have sound understanding about Google Analytics and how it…

8 years ago
  • Google Analytics and Ecommerce Tracking

What is Google Analytics and it’s Features?

Do you want to know more about your visitors and how your content is performing?​ Whether you run a website…

8 years ago
  • Google Analytics and Ecommerce Tracking

How to Add Google Analytics in BigCommerce

In this blog, you will see how to add Google Analytics and E-commerce Tracking Code  in BigCommerce. BigCommerce is one of the…

8 years ago
  • Google Analytics and Ecommerce Tracking

Google Analytics and E-commerce Tracking in Miva Merchant

If you have gone through some of previous blog, you might have seen how to install google analytics, e-commerce tracking…

8 years ago