usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [2/7] git commit: moving google analytics back to index file
Date Tue, 01 Apr 2014 20:21:19 GMT
moving google analytics back to index file


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/04ea3440
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/04ea3440
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/04ea3440

Branch: refs/pull/94/merge
Commit: 04ea34403846620e29345a901f30a027c259f0ad
Parents: ca77b9f
Author: Shawn Feldman <shawn.feldman@gmail.com>
Authored: Tue Apr 1 13:37:15 2014 -0600
Committer: Shawn Feldman <shawn.feldman@gmail.com>
Committed: Tue Apr 1 13:37:15 2014 -0600

----------------------------------------------------------------------
 portal/config.js           | 15 ---------------
 portal/index-template.html | 16 ++++++++++++++++
 2 files changed, 16 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/04ea3440/portal/config.js
----------------------------------------------------------------------
diff --git a/portal/config.js b/portal/config.js
index 12f1fe5..5484491 100644
--- a/portal/config.js
+++ b/portal/config.js
@@ -1,20 +1,5 @@
 var Usergrid = Usergrid || {};
 
-//Google Analytics
-var _gaq = _gaq || [];
-_gaq.push(['_setAccount', 'yours']);
-try{
-    (function(document) {
-        if(!document){
-            return;
-        }
-        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);
-    })(document || null);
-}catch(e){};
-//End Google Analytics
-
 Usergrid.showNotifcations = true;
 
 

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/04ea3440/portal/index-template.html
----------------------------------------------------------------------
diff --git a/portal/index-template.html b/portal/index-template.html
index acf04fc..330431b 100644
--- a/portal/index-template.html
+++ b/portal/index-template.html
@@ -168,5 +168,21 @@
 <!--<script type="text/javascript" src="js/libs/angular-ui-ng-grid/ng-grid-2.0.2.debug.js"></script>-->
 <script src="config.js"></script>
 <script id="main-script" src="js/usergrid.min.js"></script>
+<script type="text/javascript">
+    //Google Analytics
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'yours']);
+    try{
+        (function(document) {
+            if(!document){
+                return;
+            }
+            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);
+        })(document || null);
+    }catch(e){};
+    //End Google Analytics
+</script>
 </body>
 </html>


Mime
View raw message