Dynamic Remarketing - Page 2 - Ecommerce Forums
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: Dynamic Remarketing

  1. #16
    //If home page
    if($("#div_articleid_2").length > 0){
    var pagetype = "'home'";
    var googleprice = "''";
    var googleprodid ="''";
    Do not use this tag. This only appears if you are logged in as admin. Customers do not see this.

  2. #17

    Dynamic Remarketing

    Quote Originally Posted by JamesMac View Post
    Do you use the JS code from above as the script tags or just a simple <script>?

    I can't get it to pass the values dynamically -- Do I need to put the code on more than just the template_XX.html page in Volusion?

    p.s. You're right about Tag Manager. That's a nightmare of complications to get set up correctly.....

    After considerable time with Google, here is what we have for the dynamic remarketing (you will need to put in your own ID where you see XXXXXXXXXX conversion ID and again just below that. Also, another snippet needs to be added to both the Shopping Cart page and the One Page Checkout page. Let me know if you need them. Also, look for weird spaces in the code below and remove them. Not sure why they appeared when I uploaded this:

    <!-- in default template before closing body tag -->

    <script type="text/javascript" >
    if(window.location.pathname == '/')
    var google_tag_params = {
    ecomm_pagetype: 'home'
    if(document.getElementsByClassName('results_per_pa ge_select')[0] != undefined)
    var google_tag_params = {
    ecomm_pagetype: 'category'

    if(document.getElementsByClassName('vCSS_input_add tocart')[0] != undefined)
    var id = new Array();
    var price = new Array();
    id.push(document.getElementsByClassName('product_c ode')[0].innerHTML)
    if(document.getElementsByClassName('product_produc tprice')[0].getElementsByTagName('span')[1] != undefined)
    price.push(document.getElementsByClassName('produc t_productprice')[0].getElementsByTagName('span')[1].innerHTML.replace("$","").replace(",",""));
    price.push(document.getElementsByClassName('produc t_saleprice')[0].getElementsByTagName('span')[1].innerHTML.replace("$","").replace(",",""));
    var google_tag_params = {
    ecomm_prodid: id,
    ecomm_pagetype: 'product',
    ecomm_totalvalue: price
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = XXXXXXXXXX;
    var google_custom_params = window.google_tag_params;
    var google_remarketing_only = true;
    /* ]]> */
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/XXXXXXXXX/?value=0&amp;guid=ON&amp;script=0"/>
    Last edited by PDecor; 06-05-2014 at 05:36 PM.

  3. #18
    getElementsByClassName only works on IE9+.

    This may not be a big deal if you don't care for targeting older browsers, however. But worth considering.

  4. #19
    Hi PDecor - thanks for posting that! Would you be able to post the snippets for the Shopping Cart page and the One Page Checkout page ?

    Thank you!

Similar Threads

  1. Quick Remarketing Guide
    By Ben in forum Pay Per Click
    Replies: 0
    Last Post: 05-17-2013, 03:00 AM
  2. Google Remarketing setup - how to place code?
    By CarlWister in forum Pay Per Click
    Replies: 4
    Last Post: 11-20-2012, 11:00 PM
  3. Dynamic H1
    By DecoratorCentre in forum Search Engine Optimization
    Replies: 6
    Last Post: 10-23-2012, 10:25 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts