anyone setup google dynamic remarketing and care to share how they implemented it?
EDIT: There's a plugin: https://www.zen-cart.com/downloads.php?do=file&id=1883
anyone setup google dynamic remarketing and care to share how they implemented it?
EDIT: There's a plugin: https://www.zen-cart.com/downloads.php?do=file&id=1883
Hi,
I did it once.
I simply added a remarketing pixel to the common/tpl_footer.php file on my template
and another remarketing pixel to the templates/tpl_checkout_success_default.php file
to untarget people who converted.
that seems to be standard remarketing vs. the new since june dynamic one
this is the code,
trying to figure out what files to modify since variables vary due to page typeCode:<!-- 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"> 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 = xxxxxxx; 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/1070392677/?value=0&guid=ON&script=0"/> </div> </noscript>
The goal is to deploy the following tags and corresponding parameters:
Page type Remarketing tag Conversion Tracking tag
Home ecomm_pagetype=home
ecomm_prodid=
ecomm_totalvalue= Not firing
Category ecomm_pagetype=category
ecomm_prodid=
ecomm_totalvalue= Not firing
Product ecomm_pagetype=product
ecomm_prodid=
ecomm_totalvalue= Not firing
Cart ecomm_pagetype=cart
ecomm_prodid=
ecomm_totalvalue= Not firing
Purchase Confirmation ecomm_pagetype=purchase
ecomm_prodid=
ecomm_totalvalue= value
All other pages ecomm_pagetype=siteview
ecomm_prodid=
ecomm_totalvalue= Not firing
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
Bookmarks