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/01 22:21:22 UTC
[5/7] git commit: move google analytics out of config
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 <sh...@gmail.com>
Authored: Tue Apr 1 13:38:34 2014 -0600
Committer: Shawn Feldman <sh...@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>