PageSourceSearch

https://iscanner.com/wp-content/themes/iscanner/js/analytics.js?ver=1789719987

js iscanner.com collected 2026-10-02 06:54:58 UTC 1,208 bytes, 29 lines download raw bytes

1"use strict";
2(function() {
3  if (typeof window === "undefined") return;
4  window.dataLayer = window.dataLayer || [];
5  window.trackEvent = function(arg1, arg2) {
6    const payload = typeof arg1 === "object" && arg1 !== null ? arg1 || {} : Object.assign({ event: String(arg1 || "") }, arg2 || {});
7    window.dataLayer.push(payload);
8    if (typeof window.gtag === "function") {
9      const gaEvent = payload.event || payload.eventAction || "event";
10      const gaParams = {};
11      for (const k in payload) {
12        if (Object.prototype.hasOwnProperty.call(payload, k) && k !== "event" && k !== "eventAction") {
13          gaParams[k] = payload[k];
14        }
15      }
16      window.gtag("event", gaEvent, gaParams);
17    }
18    if (typeof window.analyticsToggle === "object" && window.analyticsToggle.track) {
19      const ampEvent = payload.event || payload.eventAction || "event";
20      const ampProps = {};
21      for (const key in payload) {
22        if (Object.prototype.hasOwnProperty.call(payload, key) && key !== "event" && key !== "eventAction" && !key.startsWith("gtm")) {
23          ampProps[key] = payload[key];
24        }
25      }
26      window.analyticsToggle.track(ampEvent, ampProps);
27    }
28  };
29})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.