Re: Simple Google Analytics - Support
Here is the fix to get Google PPC conversion tracking working without using the simple google analytics module, for anyone perhaps ever facing an issue similar to mine. The background on it is since we upgrade to zen 1.5x series our tracking stopped working. Haven't been able to figure out why. econcepts was going to look into it for us but simply doesn't appear to have the time as we've been waiting for about a month now. But since our site is a production site that relies heavily on Google PPC having the tracking data is critical to us. SO I dug back into our files for code we'd manually used in the past that had worked and found this and modified it for current use and voila it is working correctly. Basically it is the exact code provided by google (replace the "x's" in my code with your id provided by google or better yet simply copy the code google gives you and replace the order value information)
It may or may not work for you were using it on latest version of zen cart, eg, 1.5x series.
always backup your files before making any changes, you've been warned, :)
simply put this is the code provided by google. what makes it work is replacing the var google conversion value part with this: var google_conversion_value = <?php echo $order_summary['order_total']; ?>; - also will not track properly if you don't have in the noscript area this part as shown below: value=<?php echo $order_summary['order_total']; ?>
I placed it at the bottom of my tpl_checkout_success_default.php file.
code:
<!-- Google Code for Purchase/Sale Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "FDn3COeWQxCbr7__Aw";
var google_conversion_value = <?php echo $order_summary['order_total']; ?>;
var google_conversion_currency = "USD";
var google_remarketing_only = false;
/* ]]> */
</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="//www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=<?php echo $order_summary['order_total']; ?>&currency_code=USD&label=FDn3COeWQxCbr7__Aw&guid=ON&script=0"/>
</div>
</noscript>
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
thomaswhiteeagle
Here is the fix to get Google PPC conversion tracking working without using the simple google analytics module, for anyone perhaps ever facing an issue similar to mine. The background on it is since we upgrade to zen 1.5x series our tracking stopped working. Haven't been able to figure out why. econcepts was going to look into it for us but simply doesn't appear to have the time as we've been waiting for about a month now. But since our site is a production site that relies heavily on Google PPC having the tracking data is critical to us. SO I dug back into our files for code we'd manually used in the past that had worked and found this and modified it for current use and voila it is working correctly. Basically it is the exact code provided by google (replace the "x's" in my code with your id provided by google or better yet simply copy the code google gives you and replace the order value information)
It may or may not work for you were using it on latest version of zen cart, eg, 1.5x series.
always backup your files before making any changes, you've been warned, :)
simply put this is the code provided by google. what makes it work is replacing the var google conversion value part with this: var google_conversion_value = <?php echo $order_summary['order_total']; ?>; - also will not track properly if you don't have in the noscript area this part as shown below: value=<?php echo $order_summary['order_total']; ?>
I placed it at the bottom of my tpl_checkout_success_default.php file.
code:
<!-- Google Code for Purchase/Sale Conversion Page -->
<script type="text/javascript">
/* <=!=[=C=D=A=T=A=[ */
var google_conversion_id = xxxxxxxxxx;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "FDn3COeWQxCbr7__Aw";
var google_conversion_value = <?php echo $order_summary['order_total']; ?>;
var google_conversion_currency = "USD";
var google_remarketing_only = false;
/* ]=]=> */
</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="//www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=<?php echo $order_summary['order_total']; ?>¤cy_code=USD&label=FDn3COeWQxCbr7__Aw&guid=ON&script=0"/>
</div>
</noscript>
Thomas, this will potentially only work for your site. Reason being, it has a tracking label in it that is set to your conversion id. The other thing to note here is that the "xxxxxxxx" spot should be dynamically filled in by the program itself (already) so manually filling that in might have potential problems at some point. That field is controlled by the Admin section of the plugin.
I just finished the updated version of this mod (a long time in the making as work here has been busy) and installed on a few sites. It works with all versions of zen cart (forward and backward compatible) It has completely been updated to adhere to all new Google features including a good number of features that many are not aware of within Google Analytics (but that are very important to increasing sales.)
I'll make a link available for the new version here to download shortly. Likewise, I'll be uploading the package after providing the link to the Zen cart plugin section.
Re: Simple Google Analytics - Support
Hi I am looking for a plug-in for Google Analytics but was getting confused.
I am running on ZC1.5.4 is Simple Google Analytics ok to install as only says upto v1.5.3 or should I be installing Easy Google Analytics as that has v1.5.4? Or should I wait until Simple v1.5.4 is available?
Many thanks.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hols.club
Hi I am looking for a plug-in for Google Analytics but was getting confused.
I am running on ZC1.5.4 is Simple Google Analytics ok to install as only says upto v1.5.3 or should I be installing Easy Google Analytics as that has v1.5.4? Or should I wait until Simple v1.5.4 is available?
Many thanks.
You can use Google Analytics. The current version will work fine.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jeking
You can use Google Analytics. The current version will work fine.
Many thanks Jeking (I assume you meant Google Simple Analytics?).
What I don't understand is it not easier just to add the analytics code to the html_header.php file in common?
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hols.club
Many thanks Jeking (I assume you meant Google Simple Analytics?).
What I don't understand is it not easier just to add the analytics code to the html_header.php file in common?
Try this one:
https://www.zen-cart.com/downloads.php?do=file&id=1997
No code modification or overrides needed.
Cheers
RodG
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
RodG
RodG
so your module will do most or about the same thing this module will do?
Will it keep track of Google AdWords Conversion?
If so I going to go look at yours because Google AdWords has stop working in this version. Everything else is working but that.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
countrycharm
RodG
so your module will do most or about the same thing this module will do?
I would hope not. Simple Analytics has had many years development behind it. EC analytics is barely a month old.
Quote:
Originally Posted by
countrycharm
Will it keep track of Google AdWords Conversion?
Nope.
Quote:
Originally Posted by
countrycharm
If so I going to go look at yours because Google AdWords has stop working in this version. Everything else is working but that.
Stay with what you know/love. EC Analytics isn't intended to replicate or compete with Simple Analytics and I've no plans to make it so.
I suggested EC Analytics to hols.club based on the comment "I am looking for a plug-in for Google Analytics but was getting confused", and the one thing that EC Analytics *isn't*, and that is "confusing". :-)
Cheers
RodG
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
RodG
I would hope not. Simple Analytics has had many years development behind it. EC analytics is barely a month old.
Nope.
Stay with what you know/love. EC Analytics isn't intended to replicate or compete with Simple Analytics and I've no plans to make it so.
I suggested EC Analytics to hols.club based on the comment "I am looking for a plug-in for Google Analytics but was getting confused", and the one thing that EC Analytics *isn't*, and that is "confusing". :-)
Cheers
RodG
Thank you for the info.... :)
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Thomas, this will potentially only work for your site. Reason being, it has a tracking label in it that is set to your conversion id. The other thing to note here is that the "xxxxxxxx" spot should be dynamically filled in by the program itself (already) so manually filling that in might have potential problems at some point. That field is controlled by the Admin section of the plugin.
I just finished the updated version of this mod (a long time in the making as work here has been busy) and installed on a few sites. It works with all versions of zen cart (forward and backward compatible) It has completely been updated to adhere to all new Google features including a good number of features that many are not aware of within Google Analytics (but that are very important to increasing sales.)
I'll make a link available for the new version here to download shortly. Likewise, I'll be uploading the package after providing the link to the Zen cart plugin section.
Eric I be hearing this a long time from you but still you haven't produce any goods.
For folks who want to get there hand on the updated version now is there a link we can do so? Ty for all your hard work in this module..... :)