I googled to see if I could find maybe any threads referring to where to add google analytics code to your site in order to track amount of visitors. I found this page when I googled it http://www.vbulletin.com/forum/showt...ogle-Analytics
Followed the instructions there, I at first added the code without the <body> tags and it gave me an error, and then I added the <body> tags to see if that would solve the issue since google said to add it between the body tags but the footer template doesnt have body tags, so I therefore thought it would fix the issue. But didnt and I still got an error which is this error:
Could someone please tell me how it should be done in the best way?
Thanks.
Followed the instructions there, I at first added the code without the <body> tags and it gave me an error, and then I added the <body> tags to see if that would solve the issue since google said to add it between the body tags but the footer template doesnt have body tags, so I therefore thought it would fix the issue. But didnt and I still got an error which is this error:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected '[' in /home/brother6/public_html/includes/adminfunctions_template.php(4597) : eval()'d code on line 139
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Parse error: syntax error, unexpected '[' in /home/brother6/public_html/includes/adminfunctions_template.php(4597) : eval()'d code on line 139
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
HTML Code:
<!-- Google Analytics --> <body> <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-11833380-1"); pageTracker._trackPageview(); } catch(err) {}</script> </body>
Thanks.
Comment