PageSourceSearch

https://invested.ph/wp-content/themes/invested/assets/js/webengage.js

js invested.ph collected 2026-10-07 00:04:10 UTC 2,220 bytes, 65 lines download raw bytes

1var webengage;
2!(function (w, e, b) {
3  function o(e, t) {
4    e[t[t.length - 1]] = function () {
5      r.__queue.push([t.join("."), arguments]);
6    };
7  }
8  var i,
9    s,
10    r = w[b],
11    z = " ",
12    l = "init options track screen onReady".split(z),
13    a =
14      "webPersonalization feedback survey notification notificationInbox".split(
15        z
16      ),
17    c = "options render clear abort".split(z),
18    p = "Prepare Render Open Close Submit Complete View Click".split(z),
19    u = "identify login logout setAttribute".split(z);
20  if (!r || !r.__v) {
21    for (
22      w[b] = r = { __queue: [], __v: "6.0", user: {} }, i = 0;
23      i < l.length;
24      i++
25    )
26      o(r, [l[i]]);
27    for (i = 0; i < a.length; i++) {
28      for (r[a[i]] = {}, s = 0; s < c.length; s++) o(r[a[i]], [a[i], c[s]]);
29      for (s = 0; s < p.length; s++) o(r[a[i]], [a[i], "on" + p[s]]);
30    }
31    for (i = 0; i < u.length; i++) o(r.user, ["user", u[i]]);
32    setTimeout(function () {
33      var f = e.createElement("script");
34      f.type = "text/javascript";
35      f.async = !0;
36      f.src =
37        ("https:" == e.location.protocol
38          ? "https://ssl.widgets.webengage.com"
39          : "http://cdn.widgets.webengage.com") + "/js/webengage-min-v-6.0.js";
40      f.onload = function () {
41        webengage.init(webengageConfig.licenseKey);
42        // Track page visits
43        webengage.track("page_visit", {
44          href: window.location.href,
45          hostname: window.location.hostname,
46          pathname: window.location.pathname,
47        });
48        // Track button clicks
49        var buttons = document.querySelectorAll(".wp-element-button");
50        buttons.forEach(function (btn) {
51          btn.addEventListener("click", function (event) {
52            webengage.track("website_btn_clicked", {
53              button: event.currentTarget.innerText.trim() || "",
54              button_target_url: event.currentTarget.href || "",
55              current_page_pathname: window.location.pathname,
56              current_page_url: window.location.href,
57              hostname: window.location.hostname,
58            });
59          });
60        });
61      };
62      e.body.appendChild(f);
63    });
64  }
65})(window, document, "webengage");

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.