Hi All,
I am trying to add the google conversion tracking (into zen cart vs 1.3.0.2) in order to see what conversion I obtain from their pay per click. believed I followed their instructions and also the instructions from the FAQ. https://www.zen-cart.com/tutorials/i...hp?article=399
Soooooo I created a " 1. First, you need to make sure you have an appropriate override file in place.
You need to have the following file on your server: /includes/templates/YOUR_CUSTOM_TEMPLATE_NAME/checkout_success/tpl_footer.php
(replacing YOUR_CUSTOM_TEMPLATE_NAME with the name of your actual custom template, of course)
If you don't already have that checkout_success folder at that location, create it. And then copy the tpl_footer.php file from your /includes/templates/YOUR_CUSTOM_TEMPLATE_NAME/common/tpl_footer.php"
Then I added the code generated by google to my tpl_footer.php as follows........
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | [email protected] so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// $Id: tpl_footer.php 3371 2006-04-04 04:59:46Z ajeh $
//
// this file can be copied to /templates/your_template_dir/pagename
// example: to override the privacy page
// make a directory /templates/my_template/privacy
// copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_footer.php
// to override the global settings and turn off the footer un-comment the following line:
$flag_disable_footer = true;
require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
if (!isset($flag_disable_footer) || $flag_disable_footer == false) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="footertop">
<td class="footertop" align="center"><a href="<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="footer">
<!--bof-EZ-Pages footer display -->
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<tr>
<td class="footerbottom">
<?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?>
</td>
</tr>
<?php } ?>
<!--eof-EZ-Pages footer display -->
<?php
if (SHOW_FOOTER_IP == '1') {
?>
<tr>
<td class="footerbottom"><?php echo TEXT_YOUR_IP_ADDRESS . ' ' . $_SERVER['REMOTE_ADDR']; ?></td>
</tr>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET5 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET5)) {
if ($banner->RecordCount() > 0) {
?>
<tr>
<td align="center"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td>
</tr>
<?php
}
}
?>
<tr>
<td class="footerbottom"><?php echo FOOTER_TEXT_BODY; ?></td>
</tr>
</table>
</td></tr>
<?php
} // flag_disable_footer
?>
<!-- Google Code for CSI - Adwords Conversion Page -->
<script type="text/javascript">
<!--
var google_conversion_id = 1060852970;
var google_conversion_language = "en";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var google_conversion_label = "9AkBCPzDyAEQ6qnt-QM";
var google_conversion_value = 0;
if (<?php echo $order_summary['order_subtotal']; ?>) {
google_conversion_value = <?php echo $order_summary['order_subtotal']; ?>;
}
//-->
</script>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/1060852970/?value=<?php echo $order_summary['order_subtotal']; ?>&label=9AkBCPzDyAEQ6qnt-QM&guid=ON&script=0"/>
</div>
</noscript>
</table>
I then googled what I sell found myself as a pay per click and followed right through with a test sale...I checked in the google panel and no sale was recorded or tracked.
Have I entered the google code in the right place and correctly.
Many Thanks
RR



