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.
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.
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 ?
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.
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.
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...
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?
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.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&guid=ON&script=0"/>
</div>
</noscript>
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
After a weekend of hair pulling, I'm all out of ideas on what parameters to change to get this to work.![]()
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.