If I simply insert the given Analytics code into footer.html, I get an error message:
Fatal error: Smarty error: [in footer.html line 24]: syntax error: unrecognized tag 'var'
(Smarty_Compiler.class.php, line 590) in /mnt/var/www/virtual/adatbazisinfo.hu/linkek/htdocs/admin/smarty/Smarty.class.php on line 1093
The problem is with the line containing "try {" in that part of the added code:
- Code: Select all
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2017478-11");
pageTracker._trackPageview();
} catch(err) {}</script>
Another method suggested by Google Analytics is to create analyticstracking.php. But that brings some further questions to me:
- Where should I put that file? Path /admin ?
- Where should I call this php code? footer.html, or one of the .php files? The suggested line to insert is:
- Code: Select all
<?php include_once("analyticstracking.php") ?>
Thanks in advance for any hint or solution!
