Zen Cart Logo
Forums / All Other Contributions/Addons / Google Dynamic Remarketing [Support Thread]

Google Dynamic Remarketing [Support Thread]

Views: 11,402

Results 1 to 20 of 32
27 Aug 2013, 11:19 PM
#1
tbaquatics avatar

tbaquatics

New Zenner

Join Date:
Jan 2008
Posts:
72
Plugin Contributions:
0

Google Dynamic Remarketing [Support Thread]

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

28 Aug 2013, 3:01 PM
#2
responsivezc avatar

responsivezc

New Zenner

Join Date:
Aug 2013
Posts:
85
Plugin Contributions:
8

Re: Google Dynamic Remarketing [Support Thread]

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.

28 Aug 2013, 3:04 PM
#3
tbaquatics avatar

tbaquatics

New Zenner

Join Date:
Jan 2008
Posts:
72
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

that seems to be standard remarketing vs. the new since june dynamic one

28 Aug 2013, 7:55 PM
#4
tbaquatics avatar

tbaquatics

New Zenner

Join Date:
Jan 2008
Posts:
72
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

this is the code,

 <!-- 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> 

trying to figure out what files to modify since variables vary due to page type

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

29 Nov 2014, 6:47 AM
#5
alray10 avatar

alray10

New Zenner

Join Date:
Jan 2007
Posts:
96
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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.

16 Dec 2014, 12:39 PM
#6
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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 ?

23 Dec 2014, 12:03 AM
#7
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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.

24 Dec 2014, 1:58 AM
#8
alray10 avatar

alray10

New Zenner

Join Date:
Jan 2007
Posts:
96
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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.

25 Dec 2014, 12:55 AM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Google Dynamic Remarketing [Support Thread]

toyseller:

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.

16 Jan 2015, 11:04 AM
#10
dp_web avatar

dp_web

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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?

<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>

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

19 Jan 2015, 10:32 AM
#11
dp_web avatar

dp_web

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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

19 Jan 2015, 4:03 PM
#12
dp_web avatar

dp_web

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

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.

19 Jan 2015, 4:26 PM
#13
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Google Dynamic Remarketing [Support Thread]

dp-web:

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.

$model_query = "select products_model from products where products_id = :products_id:";
$model_query = $db->bindVars($model_query, ':products_id:', $products_id, 'integer');
$model = $db->Execute($model_query);

Where $products_id has been assigned to a sanitized value of the products_id.

21 Jan 2015, 9:46 AM
#14
dp_web avatar

dp_web

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

Thanks MC12345678,

I'm trying to change the module / plugin so it spits out the model name rather than the internal Zen Cart ID number.

I've played with what you've sent but I can't get it to work within the module at this point.

21 Jan 2015, 9:57 AM
#15
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Google Dynamic Remarketing [Support Thread]

dp-web:

Thanks MC12345678,

I'm trying to change the module / plugin so it spits out the model name rather than the internal Zen Cart ID number.

I've played with what you've sent but I can't get it to work within the module at this point.

Well... What I provided was a way to obtain the products_model data if the products unique id.is/was known, not a specific set of code customized to the plugin... There may need to be a

global $db;

In the function that the above is included. What issue(s) was had when trying to use it? Have you tried to capture the results in some other method? Either by displaying data or capturing it in a variable to be displayed as necessary?

21 Jan 2015, 11:25 AM
#16
dp_web avatar

dp_web

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

Sorry for the confusion MC12345678.

I've been trying to get the module working from the start, it only seemed to output the correct page type, with the product ID and product price not working.

I've managed to get it working for the product page with hard-coding amendments, but the cart page is still outputting the product ID rather than the model number that matches what we have in Google Adwords already set up (product feeds and campaigns).

Doing what I've done on the product page on the cart page doesn't work, for whatever reason. Another added issue is that I need the cart page to add up all the product prices together, and have all the model numbers listed and separated by a comma - which in fairness it is actually doing correctly. So if I could fudge the 'product_id' element for 'product_model' then this would give me what I need.

Sadly I'm not an expert coder, and I admit I'm struggling to get the module to do what I want. The dev abandoned it a while ago I think which is a shame as the remarketing element of Google Adwords is ideal for e-commerce stores and I can't believe that there aren't more people / stores on Zen wanting this module.

Thanks for your help so far, it is much appreciated.

dp

22 Jan 2015, 12:39 PM
#17
dp_web avatar

dp_web

New Zenner

Join Date:
Jan 2009
Posts:
25
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

Update:

Google have themselves recommended that we change the feeds/GA account settings to use the internal Zen ID rather than the model number just to get this moving and live.

This is probably the quickest way to get the remarketing live and generating £££ for us.

dp

29 Nov 2015, 6:45 PM
#18
cjsmiff avatar

cjsmiff

Zen Follower

Join Date:
Jul 2006
Location:
UK
Posts:
170
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

Did you figure this out tbaquatics?

:-)

18 Jan 2016, 12:35 AM
#19
chadlly2003 avatar

chadlly2003

Totally Zenned

Join Date:
Jan 2015
Posts:
784
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

Zencart 1.5.4
Dynamic Remarketing Plugin: V1.5.0

I am trying to use Google Dynamic Remarketing plugin but I am getting an error in my analytics reports.

Error: Your "ecomm_prodid” is not working correctly
Without this parameter, your dynamic ads won't be tailored to visitors' activity on your website.

I tried some of the suggestions in this thread for example
From this ... ecomm_prodid: " . $jsecomm_prodid . ",

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

But with no results. Can someone assist me or lead me in the right direction on getting Google dyamic remarketing working properly.

Thank you,

Chad

19 Jan 2016, 9:00 AM
#20
candleman avatar

candleman

Zen Follower

Join Date:
May 2008
Posts:
183
Plugin Contributions:
0

Re: Google Dynamic Remarketing [Support Thread]

I have tried this mod (v1.5.4) not sure if it should work or not but.....
If I already have the google analytics mod installed, should I be removing it for the remarketing Tag to work?
I get 3 errors.
Conversion id not set
No HTTP response detected ?
Number field should not be quoted: 'ecomm_totalvalue'