Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/wp-analytify/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/wp-analytify/assets/js/miscellaneous-tracking.js
jQuery(document).ready(function ($) {
  // Track 404 page errors.
  if (
    "on" === miscellaneous_tracking_options.track_404_page.should_track &&
    miscellaneous_tracking_options.track_404_page.is_404
  ) {
    if ("gtag" === miscellaneous_tracking_options.tracking_mode) {
      if ("ga4" === miscellaneous_tracking_options.ga_mode) {
        if (typeof gtag !== "undefined") {
          gtag("event", "404_error", {
            wpa_category: "404 Error",
            wpa_label:
              miscellaneous_tracking_options.track_404_page.current_url,
          });
        }
      } else {
        if (typeof gtag !== "undefined") {
          gtag("event", "Page Not Found", {
            event_category: "404 Error",
            event_label:
              miscellaneous_tracking_options.track_404_page.current_url,
          });
        }
      }
    } else {
      if (typeof ga !== "undefined") {
        ga(
          "send",
          "event",
          "404 Error",
          "Page Not Found",
          miscellaneous_tracking_options.track_404_page.current_url
        );
      }
    }
  }

  // track javascript errors.
  if ("on" === miscellaneous_tracking_options.track_js_error) {
    if ("gtag" === miscellaneous_tracking_options.tracking_mode) {
      if ("ga4" === miscellaneous_tracking_options.ga_mode) {
        function trackJavaScriptError(e) {
          const errMsg = e.message;
          const errSrc = e.filename + ": " + e.lineno;
          gtag("event", "js_error", {
            wpa_category: "JavaScript Error",
            wpa_action: errMsg,
            wpa_label: errSrc,
            non_interaction: true,
          });
        }
        if (typeof gtag !== "undefined") {
          window.addEventListener("error", trackJavaScriptError, false);
        }
      } else {
        function trackJavaScriptError(e) {
          const errMsg = e.message;
          const errSrc = e.filename + ": " + e.lineno;
          gtag("event", errMsg, {
            event_category: "JavaScript Error",
            event_label: errSrc,
            non_interaction: true,
          });
        }
        if (typeof gtag !== "undefined") {
          window.addEventListener("error", trackJavaScriptError, false);
        }
      }
    } else {
      function trackJavaScriptError(e) {
        const errMsg = e.message;
        const errSrc = e.filename + ": " + e.lineno;
        ga("send", "event", "JavaScript Error", errMsg, errSrc, {
          nonInteraction: 1,
        });
      }
      if (typeof ga !== "undefined") {
        window.addEventListener("error", trackJavaScriptError, false);
      }
    }
  }

  // Track ajax errors.
  if ("on" === miscellaneous_tracking_options.track_ajax_error) {
    if ("gtag" === miscellaneous_tracking_options.tracking_mode) {
      if ("ga4" === miscellaneous_tracking_options.ga_mode) {
        if (typeof gtag !== "undefined") {
          jQuery(document).ajaxError(function (e, request, settings) {
            gtag("event", "ajax_error", {
              wpa_category: "Ajax Error",
              wpa_action: request.statusText,
              wpa_label: settings.url,
              non_interaction: true,
            });
          });
        }
      } else {
        if (typeof gtag !== "undefined") {
          jQuery(document).ajaxError(function (e, request, settings) {
            gtag("event", "ajax_error", {
              event_category: "Ajax Error",
              event_action: request.statusText,
              event_label: settings.url,
              non_interaction: true,
            });
          });
        }
      }
    } else {
      if (typeof ga !== "undefined") {
        jQuery(document).ajaxError(function (e, request, settings) {
          ga("send", "event", "Ajax Error", request.statusText, settings.url, {
            nonInteraction: 1,
          });
        });
      }
    }
  }
});

Spamworldpro Mini