Changeset 7964
- Timestamp:
- 03/15/08 10:13:49 (16 months ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/google_analytics.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/google_analytics.rb
r4634 r7964 12 12 return '' unless @conf['google_analytics.profile'] 13 13 <<-HTML 14 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> 14 <script type="text/javascript"> 15 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.") ; 16 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")) ; 15 17 </script> 16 18 <script type="text/javascript"> 17 _uacct = "UA-#{h @conf['google_analytics.profile']}"; 18 urchinTracker(); 19 var pageTracker = _gat._getTracker("UA-#{h @conf['google_analytics.profile']}"); 20 pageTracker._initData(); 21 pageTracker._trackPageview(); 19 22 </script> 20 23 HTML
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)