PageSourceSearch

https://docs-spectrocloud.netlify.app/scripts/googleTagManager.js

js docs-spectrocloud.netlify.app collected 2026-10-03 10:39:40 UTC 1,966 bytes, 54 lines download raw bytes

1/* eslint-disable no-prototype-builtins */
2window.dataLayer = window.dataLayer || [];
3function gtag() {
4  window.dataLayer.push(arguments);
5}
6
7// set „denied" as default for both ad and analytics storage,
8gtag("consent", "default", {
9  ad_storage: "denied",
10  analytics_storage: "denied",
11  wait_for_update: 2000, // milliseconds to wait for update
12});
13
14// Enable ads data redaction by default [optional]
15gtag("set", "ads_data_redaction", true);
vendor: 396 bytes, lines 15-26
15
16
17(function (w, d, s, l, i) {
18  w[l] = w[l] || [];
19  w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
20  var f = d.getElementsByTagName(s)[0],
21    j = d.createElement(s),
22    dl = l != "dataLayer" ? "&l=" + l : "";
23  j.async = true;
24  j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
25  f.parentNode.insertBefore(j, f);
26})(window, document, "script", "dataLayer", "
26GTM-T2F9ZMS
vendor: 5 bytes, lines 26-27
26");
27
28// Please replace 'ucEvent' with the event you have just created
29window.addEventListener("ucEvent", function (e) {
30  if (e.detail && e.detail.event == "consent_status") {
31    // Please replace the analytics service name here with the customized service
32    var ucAnalyticsService = "Google Analytics";
33    // Please replace the ad service name here with the customized service
34    var ucAdService = "Google Ads Remarketing";
35
36    if (e.detail.hasOwnProperty(ucAnalyticsService) && e.detail.hasOwnProperty(ucAdService)) {
37      gtag("consent", "update", {
38        ad_storage: e.detail[ucAdService] ? "granted" : "denied",
39        analytics_storage: e.detail[ucAnalyticsService] ? "granted" : "denied",
40      });
41    } else {
42      if (e.detail.hasOwnProperty(ucAdService)) {
43        gtag("consent", "update", {
44          ad_storage: e.detail[ucAdService] ? "granted" : "denied",
45        });
46      }
47      if (e.detail.hasOwnProperty(ucAnalyticsService)) {
48        gtag("consent", "update", {
49          analytics_storage: e.detail[ucAnalyticsService] ? "granted" : "denied",
50        });
51      }
52    }
53  }
54});

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.