polygone:
I just checked common/tpl_main_page.php and see
<!--simple google analytics-->
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
</body>
have I combined old & new install methods?
Please advise
If you were running zen cart v1.3.9 and simple google analytics v1.2.4, v1.2.5 everything should be correct in your insulation. Nothing has been change in simple google analytics v1.2.5a, simple google analytics v1.2.5b, simple google analytics v1.2.5c except I created and upgrade folder and created a upgrade.txt file. so this would be easier for the installer.
NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous location
At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php
Find the lines of code that look like this (found below) just before the </body> tag:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
CHANGE / replace the lines of code to look like this:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
// Do nothing
} else {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
Hope this helps.