src/pyams_skin/resources/js/myams-stats.js
changeset 566 a1707c607eec
parent 565 318533413200
child 567 bca1726b1d85
--- a/src/pyams_skin/resources/js/myams-stats.js	Sun Jul 19 02:02:20 2020 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-/**
- * MyAMS stats management
- */
-(function($, globals) {
-
-	var ams = globals.MyAMS;
-
-	ams.stats = {
-
-		/**
-		 * Log current or specified page load
-		 */
-		logPageview: function(url) {
-			if (typeof(globals._gaq) === 'undefined') {
-				return;
-			}
-			var location = globals.window.location;
-			globals._gaq.push(['_trackPageview', url || location.pathname + location.hash]);
-		},
-
-		/**
-		 * Send event to Google Analytics platform
-		 *
-		 * @param category
-		 * @param action
-		 * @param label
-		 */
-		logEvent: function(category, action, label) {
-			if (typeof(globals._gaq) === 'undefined') {
-				return;
-			}
-			if (typeof(category) === 'object') {
-				action = category.action;
-				label = category.label;
-				category = category.category;
-			}
-			globals._gaq.push(['_trackEvent', category, action, label]);
-		}
-	};
-
-})(jQuery, this);