usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [5/7] git commit: move google analytics out of config
Date Tue, 01 Apr 2014 20:21:22 GMT
move google analytics out of config


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

Branch: refs/pull/94/merge
Commit: 9a36362a1bb8227c693c9297fb8589f7da8c409c
Parents: b0dfe02
Author: Shawn Feldman <shawn.feldman@gmail.com>
Authored: Tue Apr 1 13:38:34 2014 -0600
Committer: Shawn Feldman <shawn.feldman@gmail.com>
Committed: Tue Apr 1 13:38:34 2014 -0600

----------------------------------------------------------------------
 portal/dist/usergrid-portal/config.js           | 15 ---------------
 portal/dist/usergrid-portal/index-debug.html    | 16 ++++++++++++++++
 portal/dist/usergrid-portal/index-template.html | 16 ++++++++++++++++
 portal/dist/usergrid-portal/index.html          | 16 ++++++++++++++++
 portal/index-debug.html                         | 16 ++++++++++++++++
 portal/index.html                               | 16 ++++++++++++++++
 6 files changed, 80 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/9a36362a/portal/dist/usergrid-portal/config.js
----------------------------------------------------------------------
diff --git a/portal/dist/usergrid-portal/config.js b/portal/dist/usergrid-portal/config.js
index 12f1fe5..5484491 100644
--- a/portal/dist/usergrid-portal/config.js
+++ b/portal/dist/usergrid-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/9a36362a/portal/dist/usergrid-portal/index-debug.html
----------------------------------------------------------------------
diff --git a/portal/dist/usergrid-portal/index-debug.html b/portal/dist/usergrid-portal/index-debug.html
index a5e793f..5dbc06e 100644
--- a/portal/dist/usergrid-portal/index-debug.html
+++ b/portal/dist/usergrid-portal/index-debug.html
@@ -163,5 +163,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-dev.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>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/9a36362a/portal/dist/usergrid-portal/index-template.html
----------------------------------------------------------------------
diff --git a/portal/dist/usergrid-portal/index-template.html b/portal/dist/usergrid-portal/index-template.html
index acf04fc..330431b 100644
--- a/portal/dist/usergrid-portal/index-template.html
+++ b/portal/dist/usergrid-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>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/9a36362a/portal/dist/usergrid-portal/index.html
----------------------------------------------------------------------
diff --git a/portal/dist/usergrid-portal/index.html b/portal/dist/usergrid-portal/index.html
index 61ecb20..c3bac6f 100644
--- a/portal/dist/usergrid-portal/index.html
+++ b/portal/dist/usergrid-portal/index.html
@@ -163,5 +163,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>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/9a36362a/portal/index-debug.html
----------------------------------------------------------------------
diff --git a/portal/index-debug.html b/portal/index-debug.html
index a5e793f..5dbc06e 100644
--- a/portal/index-debug.html
+++ b/portal/index-debug.html
@@ -163,5 +163,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-dev.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>

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/9a36362a/portal/index.html
----------------------------------------------------------------------
diff --git a/portal/index.html b/portal/index.html
index 61ecb20..c3bac6f 100644
--- a/portal/index.html
+++ b/portal/index.html
@@ -163,5 +163,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