incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r1365351 - in /incubator/ooo/ooo-site/trunk: content/google-analytics.js templates/skeleton.html
Date Tue, 24 Jul 2012 23:36:20 GMT
Author: wave
Date: Tue Jul 24 23:36:19 2012
New Revision: 1365351

URL: http://svn.apache.org/viewvc?rev=1365351&view=rev
Log:
Put /google-analyitics.js ssi include onto every page via the template

Added:
    incubator/ooo/ooo-site/trunk/content/google-analytics.js   (with props)
Modified:
    incubator/ooo/ooo-site/trunk/templates/skeleton.html

Added: incubator/ooo/ooo-site/trunk/content/google-analytics.js
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/google-analytics.js?rev=1365351&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/google-analytics.js (added)
+++ incubator/ooo/ooo-site/trunk/content/google-analytics.js Tue Jul 24 23:36:19 2012
@@ -0,0 +1,12 @@
+<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>

Propchange: incubator/ooo/ooo-site/trunk/content/google-analytics.js
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/ooo/ooo-site/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/templates/skeleton.html?rev=1365351&r1=1365350&r2=1365351&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/templates/skeleton.html (original)
+++ incubator/ooo/ooo-site/trunk/templates/skeleton.html Tue Jul 24 23:36:19 2012
@@ -7,20 +7,8 @@
 <title>{% block title %}{{ headers.title }}{% endblock %}</title>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 {% if headers.css %}<link href="{{ headers.css }}" rel="stylesheet" type="text/css">{%
endif %}
-
-<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>
 {% endif %}
+<!--#include virtual="/google-analytics.js" -->
 </head>
 <body>
 <!--#include virtual="{{ ssi.headers.brand }}" -->



Mime
View raw message