
Originally Posted by
countrycharm
Thank you for you response. I have completely uninstalled Andrews even the data base. What I was saying is do you have to add this
PHP Code:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4694054-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
To the tpl_main_page.php along with the this code in the module
PHP Code:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
This is what I need to know. Thank you
No. You do not need (or want) both codes in there. The only thing you need to install on the tpl_main_page.php is the:
PHP Code:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
portion of code. My contribution does the rest for you.