Since there isn't an Easy Google Analytics (2.1.5) thread, I'm posting a query here. I'm on ZenCart v1.5.1. I was previously using Simple Google Analytics (1.2.6).
In includes/templates/<your template>/common/html_header.php, there's this line:
PHP Code:
/**
* include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically.
* These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page
*/
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n";
}
This seems to included the includes/templates/<your template>/jscript/jscript_google_analytics.php which will include google_analytics.php already.
So the additional line in tpl_main_page.php is redundant...
PHP Code:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE != "Asynchronous") {
require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
}
?>
My question is, should one of it be removed?
Bookmarks