PageSourceSearch

https://www.generalww.com/resources/js/google-analytics.js

js generalww.com collected 2026-10-01 12:36:14 UTC 2,534 bytes, 67 lines download raw bytes

1// Cookie自動ブロッキング有効化
2var hostname = window.location.hostname;
3
4// ------------------------------
5// GTMプレビュー判定(URLパラメータ)
6// ------------------------------
7function hasGtmPreviewParam() {
8    var params = new URLSearchParams(window.location.search);
9    if (params.has('gtm_debug')) {
10        return true;
11    }
12    if (params.has('_dbg')) {
13        return true;
14    }
15    return false;
16}
17
18// ------------------------------
19// gtm_preview セッションストレージの準備
20// ------------------------------
21var previewParamExists = hasGtmPreviewParam();
22var previewSessionValue = sessionStorage.getItem('gtm_preview');
23
24// URLでプレビュー指定があり、セッション未設定ならセット(タブセッション存続中のみ有効)
25if (previewParamExists) {
26    if (previewSessionValue !== '1') {
27        sessionStorage.setItem('gtm_preview', '1');
28        previewSessionValue = '1';
29    }
30}
31
32// ------------------------------
33// OneTrust 自動ブロック読み込み(gtm_preview=1 が存在する場合のみ)
34// ※ プレビュー時は読み込まない
35// ------------------------------
36var isPreview = false;
37if (previewSessionValue === '1') {
38    isPreview = true;
39}
40
41if (!isPreview) {
42    if(hostname =="staging.generalww.com" || hostname == "www.generalww.com"){
43        // Load cookie control
44        var cookieFujitsu = document.createElement('script');
45        cookieFujitsu.type = 'text/javascript';
46        cookieFujitsu.src = 'https://cdn-au.onetrust.com/consent/019b0103-77db-7472-b01e-e2fe1d08fbc7/OtAutoBlock.js';
47        document.head.appendChild(cookieFujitsu);
48    }
49    if(hostname == "staging.general-hvac.com" || hostname == "www.general-hvac.com"){
50        // Load cookie control
51        var cookieGeneral = document.createElement('script');
52        cookieGeneral.type = 'text/javascript';
53        cookieGeneral.src = 'https://cdn-au.onetrust.com/consent/85446a89-2ae6-4921-96ec-9a226c59315d/OtAutoBlock.js';
54        document.head.appendChild(cookieGeneral);
55    }
56}
57
58/*Google Tag manager*/
vendor: 370 bytes, lines 58-67
58
59(function(w,d,s,l,i){
60    w[l]=w[l]||[];w[l].push({'gtm.start':
61    new Date().getTime(),event:'gtm.js'});
62    var f=d.getElementsByTagName(s)[0],
63    j=d.createElement(s),
64    dl=l!='dataLayer'?'&l='+l:'';
65    j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;
66    f.parentNode.insertBefore(j, f);
67})(window,document,'script','dataLayer','
67GTM-5C7T5H
vendor: 3 bytes, line 67
67');

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.