You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by bu...@apache.org on 2012/04/13 20:47:52 UTC

svn commit: r812813 - in /websites/staging/openofficeorg/trunk/content: ./ openofficeorg/website-local.html

Author: buildbot
Date: Fri Apr 13 18:47:52 2012
New Revision: 812813

Log:
Staging update by buildbot for openofficeorg

Modified:
    websites/staging/openofficeorg/trunk/content/   (props changed)
    websites/staging/openofficeorg/trunk/content/openofficeorg/website-local.html

Propchange: websites/staging/openofficeorg/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Apr 13 18:47:52 2012
@@ -1 +1 @@
-1325080
+1325901

Modified: websites/staging/openofficeorg/trunk/content/openofficeorg/website-local.html
==============================================================================
--- websites/staging/openofficeorg/trunk/content/openofficeorg/website-local.html (original)
+++ websites/staging/openofficeorg/trunk/content/openofficeorg/website-local.html Fri Apr 13 18:47:52 2012
@@ -110,6 +110,33 @@ The "legacy" OpenOffice.org site uses ht
 <h2 id="version-control">Version Control</h2>
 <p>We use <a href="http://subversion.apache.org">Apache Subversion</a> for version control. You can <a href="http://svn.apache.org/viewvc/incubator/ooo/site/trunk">browse the project 
 repository</a> or <a href="https://svn.apache.org/repos/asf/incubator/ooo/ooo-site/trunk/">browse the user portal repository</a> in your web browser.</p>
+<h2 id="google-analytics">Google Analytics</h2>
+<p>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.</p>
+<p>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.</p>
+<div class="codehilite"><pre><span class="nt">&lt;script</span> <span class="na">type=</span><span class="s">&quot;text/javascript&quot;</span><span class="nt">&gt;</span>
+
+  var _gaq = _gaq || [];
+  _gaq.push([&#39;_setAccount&#39;, &#39;UA-30193653-1&#39;]);
+  _gaq.push([&#39;_setDomainName&#39;, &#39;openoffice.org&#39;]);
+  _gaq.push([&#39;_trackPageview&#39;]);
+
+  (function() {
+    var ga = document.createElement(&#39;script&#39;); ga.type = &#39;text/javascript&#39;; ga.async = true;
+    ga.src = (&#39;https:&#39; == document.location.protocol ? &#39;https://ssl&#39; : &#39;http://www&#39;) + &#39;.google-analytics.com/ga.js&#39;;
+    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(ga, s);
+  })();
+
+<span class="nt">&lt;/script&gt;</span>
+</pre></div>
+
+
+<p>Note:  This is not needed for the podling website, only for the openoffice.org pages. <br />
+</p>
+<p>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.</p>
 <h2 id="making-changes-to-the-sites">Making Changes to the Sites</h2>
 <h3 id="using-svn">Using SVN</h3>
 <p>You can make changes to either site using svn (subversion). This typically involves