incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robw...@apache.org
Subject svn commit: r1325901 - /incubator/ooo/site/trunk/content/openofficeorg/website-local.mdtext
Date Fri, 13 Apr 2012 18:47:48 GMT
Author: robweir
Date: Fri Apr 13 18:47:48 2012
New Revision: 1325901

URL: http://svn.apache.org/viewvc?rev=1325901&view=rev
Log:
Add GA information

Modified:
    incubator/ooo/site/trunk/content/openofficeorg/website-local.mdtext

Modified: incubator/ooo/site/trunk/content/openofficeorg/website-local.mdtext
URL: http://svn.apache.org/viewvc/incubator/ooo/site/trunk/content/openofficeorg/website-local.mdtext?rev=1325901&r1=1325900&r2=1325901&view=diff
==============================================================================
--- incubator/ooo/site/trunk/content/openofficeorg/website-local.mdtext (original)
+++ incubator/ooo/site/trunk/content/openofficeorg/website-local.mdtext Fri Apr 13 18:47:48
2012
@@ -38,6 +38,38 @@ The "legacy" OpenOffice.org site uses ht
 We use [Apache Subversion][1] for version control. You can [browse the project 
 repository][2] or [browse the user portal repository][9] in your web browser.
 
+
+## Google Analytics
+
+We use Google Analytics on key webpages to gather information on website
+usage patterns.  This information is then used to help us prioritize what
+areas of the website should get more attention.
+
+To enable a page for Google Analytics you need to added the following block 
+of JavaScript immediately before the end of the "head" element in the HTML.
+
+
+    <script type="text/javascript">
+    
+      var _gaq = _gaq || [];
+      _gaq.push(['_setAccount', 'UA-30193653-1']);
+      _gaq.push(['_setDomainName', 'openoffice.org']);
+      _gaq.push(['_trackPageview']);
+    
+      (function() {
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async
= true;
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www')
+ '.google-analytics.com/ga.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga,
s);
+      })();
+    
+    </script>
+
+
+Note:  This is not needed for the podling website, only for the openoffice.org pages.	
+        
+It is not necessary to add this to every single web page.  The greatest benefit for
+the effort comes from adding it to the key destination pages.
+
 ## Making Changes to the Sites
 
 ### Using SVN



Mime
View raw message