Results 1 to 10 of 32

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Posts
    92
    Plugin Contributions
    2

    Default Problems with Google Dynamic Remarketing Mod: ecomm_prodid

    I installed the Google Dynamic Remarketing Mod https://www.zen-cart.com/downloads.php?do=file&id=1883
    It does not seem to be picking up the products_id and putting them in ecomm_prodid
    Also the value seems a bit hit and miss.

  2. #2
    Join Date
    Jun 2008
    Location
    UK
    Posts
    209
    Plugin Contributions
    0

    Default Re: Google Dynamic Remarketing Mod

    I too have downloaded the Google Dynamic Remarketing mod and it isnt filling ecomm_prodid.

    Maybe because I now realise that I have v1.3.9h and the module is for v1.5.0

    Everything is fine with the coding apart from not picking up the product id.

    Is it as simple as a one line piece of coding to pick up the product id ?

    Can anyone help with a piece of coding ?

  3. #3
    Join Date
    Jun 2008
    Location
    UK
    Posts
    209
    Plugin Contributions
    0

    Default Re: Google Dynamic Remarketing Mod

    solved this:- I changed this line in the Google Dynamic Remarketing Mod ...

    From this ... ecomm_prodid: " . $jsecomm_prodid . ",

    to this ecomm_prodid: \"" . $_GET['products_id'] . "\",

    I have no understanding of php coding but came up with this and it works ok.

  4. #4
    Join Date
    Jan 2007
    Posts
    92
    Plugin Contributions
    2

    Default Re: Google Dynamic Remarketing Mod

    Thanks it is a step it the right direction. Just need to get it to pick up the model numbers of items in the cart now.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Google Dynamic Remarketing Mod

    Quote Originally Posted by toyseller View Post
    solved this:- I changed this line in the Google Dynamic Remarketing Mod ...

    From this ... ecomm_prodid: " . $jsecomm_prodid . ",

    to this ecomm_prodid: \"" . $_GET['products_id'] . "\",

    I have no understanding of php coding but came up with this and it works ok.
    Caution should be used when making changes such as this where the $_GET parameter is brought inline with other code. It should be sanitized first. Under this method, additional code could be provided to the browser uri that could cause the software to crash and expose information about the system or software.

    An almost better option would be to upgrade to the latest ZC which is also more secure in general.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2009
    Posts
    25
    Plugin Contributions
    0

    cart error Re: Google Dynamic Remarketing Mod

    Did anybody get any joy on this?

    I'm trying to use the same module and it is only managing to correctly fire the 'page type' field, the other 2 ('page id' and 'total value') do not work at all.

    If I use the code directly from Google (below), what values do I need to replace to get Zen Cart to fill out for me?

    PHP Code:
    <script type="text/javascript">
    var 
    google_tag_params = {
    ecomm_prodid'REPLACE_WITH_VALUE',
    ecomm_pagetype'REPLACE_WITH_VALUE',
    ecomm_totalvalue'REPLACE_WITH_VALUE',
    };
    </script>
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = *********;
    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/*********/?value=0&amp;guid=ON&amp;script=0"/>
    </div>
    </noscript> 
    If I can figure out what code to replace I'm happy to add this directly to the product info page myself and not use the module at all. Searching the forums doesn't give me any clues at all.

    I did try the GET parameter suggestion from this thread and that does indeed work, but the last poster mentioned its not 100% secure so I've not used it.

    Cheers,
    dp

  7. #7
    Join Date
    Jan 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: Google Dynamic Remarketing Mod

    After a weekend of hair pulling, I'm all out of ideas on what parameters to change to get this to work.

  8. #8
    Join Date
    Jan 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: Google Dynamic Remarketing Mod

    I'm bodging this up with all sorts of code - but I'm struggling to get the product_id changed to product_model as this is what we use in Google Adwords, does anyone know to edit the module to fix this? The module creator has dropped off the planet it seems.

 

 

Similar Threads

  1. v150 Support Thread for Google reCAPTCHA plugin
    By David Allen in forum All Other Contributions/Addons
    Replies: 689
    Last Post: 26 Apr 2026, 09:54 PM
  2. Dynamic Filter [Support Thread]
    By davowave in forum Addon Sideboxes
    Replies: 808
    Last Post: 19 May 2025, 08:37 PM
  3. v150 Google Merchant Center Feeder for ZC v1.5.x [Support Thread]
    By DivaVocals in forum Addon Admin Tools
    Replies: 504
    Last Post: 19 Nov 2024, 03:50 PM
  4. Welcome, Google Searcher [Support Thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 24
    Last Post: 8 Jan 2017, 04:47 PM
  5. Google Base Feeder Support Thread [OLD]
    By numinix in forum All Other Contributions/Addons
    Replies: 3562
    Last Post: 2 Apr 2012, 06:30 PM

Posting Permissions

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