I have a simple flat file database forum and I want to add analytics to the footer.php file.
I added this code to the footer.php file.
PHP Code:
<?php // Ultimate PHP Board // Author: Tim Hoeppner aka RR_Pilot, FixITguy // Website: http://www.myupb.com
// Version: 2.0 // Using textdb Version: 4.3.2 //Ending of center Table if (!defined('DB_DIR')) die
('This must be run under a wrapper script!'); if (!isset($script_end_time)) { $mt = explode(' ',
microtime()); $script_end_time = $mt[0] + $mt[1]; } echo " <div class='copy'><a
href='http://forum.myupb.com/'>Powered by myUPB v".UPB_VERSION."</a> · ©
PHP Outburst 2002 - ".date("Y",time())."</div> </div>
<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"> try { var pageTracker = _gat._getTracker('UA-8286345-1'); pageTracker._trackPageview(); } catch(err) {}</script>
</body> </html>"; ?>
However, whenever I add this to the code I get the error
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /usr/local/httpd/www.konetchreport.com/forum/includes/footer.php on line 23
I don't know how to fix it. I trid romoving all the double quotes and replace them with single quotes, and that usually fixes it, but it doesn't in this case.
What should I do?
Thanks
__________________
Alex
|