Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
September 1, 2008 - Submit Your Web Site for the Sept 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 05, 2008, 08:24:43 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Use Google Analytics on SMF Forum  (Read 788 times)
RickJ
"Tables Guy": In Tattoinese, that translates as
Über Jedi
*****
Offline Offline

Posts: 2644



« on: December 18, 2007, 04:25:44 PM »

Have any of you successfully installed Analytics on your SMF forum?

Even if not, you may be able to help me... It's code like this that needs pasted just before the close body tag:
Code:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write("\<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'>\<\/script>" );
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-123456-78");
pageTracker._initData();
pageTracker._trackPageview();
</script>
 

I know it gets pasted into index.template.php but I read in so many threads on the smf forum that members have problems with it shifting the page, not working, etc.

...and I read too that I should replace single quotes with backslashes.

I'm cornfuzed.  Can anyone here make it simple for me?

Thanks!
Logged

Rick.
Trying to daydream, but my mind keeps wandering.

Ecumenical Apologetics | Affordable WebsitesSt. Gabriel Radio
RickJ
"Tables Guy": In Tattoinese, that translates as
Über Jedi
*****
Offline Offline

Posts: 2644



« Reply #1 on: December 18, 2007, 04:34:28 PM »

Gosh...at another place I read that rather than replace the single quote with a backslash, it says precede any single quotes with a backslash.

Sheesh  Confused
Logged

Rick.
Trying to daydream, but my mind keeps wandering.

Ecumenical Apologetics | Affordable WebsitesSt. Gabriel Radio
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM