Looks like you got it Bettysue, as far as I can see all the code is there that you need to track your site. Enjoy the stat's they can be very helpful!
cuda
Printable View
Thank you Cuda and Dr. Byte for the help and advise!!
betty
i just installed it, it works great!
Ok I got to the checkout success page using the HSBC payment method, the cc number you gave just always kicked me back to your payment page after I entered it. At the bottom of your checkout success page your code is only the standard tracking code:
Also on this page you do not have properly formated html because you do not have any </html> or </body> clossing tags. But that is besides the point...Code:<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
It appears your your_template/google_analytics/google_analytics.php is not functioning properly. What you should see on your checkout_success page is something like this:
Notice the hidden form with the transaction data. Try to upload the your_template/google_analytics/google_analytics.php file again. Also make sure you removed the hard coded google code and only have this at the bottom of your template just before the </body> tag:Code:<script src="https://ssl.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-XXXXXX-1";
urchinTracker();
</script><form style="display:none;" name="utmform">
<textarea id="utmtrans">UTM:T|6||62.78|0.00|35.28|TEST|Louisiana|United States UTM:I|6|1191|product name|2.00|1</textarea>
</form>
Then do a test transaction and view your source to see if you get the hidden transaction form....report backPHP Code:
<?php
if (file_exists($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'))
{
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
Cuda, don't know if I got an old set of files, but my your_template/google_analytics/google_analytics.php does not have a closing body tag. These are the last few lines of code:
Is this a problem?Code://echo transaction data
echo '<form style="display:none;" name="utmform">
<textarea id="utmtrans">'
. addslashes($transaction) . ' '
. addslashes(trim($items))
. '</textarea>
</form>';
}
?>
Uploaded a new copy of your_template/google_analytics/google_analytics.php, but still not getting the hidden form.
Nellie there should be no closing tag in any of this modules files that should be in your main site template. Make sure the code at the bottom of your templates/[your_template]/common/tpl_main_page.php just before the body tag is:
Is it there?PHP Code:
<?php
if (file_exists($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'))
{
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
This is what I have at the end of templates/[your_template]/common/tpl_main_page.php :
Code:<td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div> </td>
</tr>
<?php
}
}
?>
</table>
<?php require(DIR_WS_MODULES . 'footer.php'); ?>
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>