You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/04/02 23:21:10 UTC

[09/39] git commit: moving google analytics back to index file

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/92/merge
Commit: 04ea34403846620e29345a901f30a027c259f0ad
Parents: ca77b9f
Author: Shawn Feldman <sh...@gmail.com>
Authored: Tue Apr 1 13:37:15 2014 -0600
Committer: Shawn Feldman <sh...@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>