--- 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);