Temporarily disable Google Analytics until such time as angulartics supports multiple providers
This commit is contained in:
		
							parent
							
								
									ec01b47608
								
							
						
					
					
						commit
						95a8915546
					
				
					 2 changed files with 12 additions and 9 deletions
				
			
		|  | @ -89,7 +89,7 @@ function getMarkedDown(string) { | |||
| } | ||||
| 
 | ||||
| // Start the application code itself.
 | ||||
| quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'restangular', 'angularMoment', 'angulartics', 'angulartics.google.analytics', 'angulartics.mixpanel', '$strap.directives', 'ngCookies'], function($provide, cfpLoadingBarProvider) { | ||||
| quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'restangular', 'angularMoment', 'angulartics', /*'angulartics.google.analytics',*/ 'angulartics.mixpanel', '$strap.directives', 'ngCookies'], function($provide, cfpLoadingBarProvider) { | ||||
|     cfpLoadingBarProvider.includeSpinner = false; | ||||
|      | ||||
|     $provide.factory('CookieService', ['$cookies', '$cookieStore', function($cookies, $cookieStore) { | ||||
|  | @ -286,13 +286,15 @@ quayApp = angular.module('quay', ['ngRoute', 'chieffancypants.loadingBar', 'rest | |||
|           if (UserService.currentUser().anonymous) { | ||||
|             return; | ||||
|           } | ||||
|          | ||||
|           planService.isBusinessPlan(planId, function(bus) { | ||||
|             if (bus) { | ||||
|               document.location = '/organizations/new/?plan=' + planId; | ||||
|             } else { | ||||
|               document.location = '/user?plan=' + planId; | ||||
|             } | ||||
| 
 | ||||
|           planService.getPlan(planId, function(plan) { | ||||
|             planService.isBusinessPlan(planId, function(bus) { | ||||
|               if (bus) { | ||||
|                 document.location = '/organizations/new/?plan=' + planId; | ||||
|               } else { | ||||
|                 document.location = '/user?plan=' + planId; | ||||
|               } | ||||
|             }); | ||||
|           }); | ||||
|         }); | ||||
|       }; | ||||
|  |  | |||
|  | @ -78,6 +78,7 @@ b._i.push([a,e,d])};b.__SV=1.2}})(document,window.mixpanel||[]); | |||
| mixpanel.init(isProd ? "50ff2b2569faa3a51c8f5724922ffb7e" : "38014a0f27e7bdc3ff8cc7cc29c869f9", { track_pageview : false, debug: !isProd });</script><!-- end Mixpanel --> | ||||
| 
 | ||||
| <!-- start analytics --><script> | ||||
| /* | ||||
| var isProd = document.location.hostname === 'quay.io'; | ||||
| 
 | ||||
|   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | ||||
|  | @ -86,7 +87,7 @@ var isProd = document.location.hostname === 'quay.io'; | |||
|   })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); | ||||
| 
 | ||||
|   ga('create', isProd ? 'UA-34988886-5' : 'UA-34988886-4', 'quay.io'); | ||||
| 
 | ||||
| */ | ||||
| </script> | ||||
|   </head> | ||||
|   <body> | ||||
|  |  | |||
		Reference in a new issue