PageSourceSearch

https://mizu-support-mirror.vercel.app/mirror-ga4.js

js mizu-support-mirror.vercel.app collected 2026-10-03 07:19:24 UTC 1,277 bytes, 32 lines download raw bytes

1/* mirror-ga4.js — ミラーサイト GA4 計測(add_ga4.py により自動生成。直接編集しない) */
2(function () {
3  var ID = 'G-GY6RXDGFRS';
4  var VENDOR = 'mizu-support';
5  window.dataLayer = window.dataLayer || [];
6  function gtag() { dataLayer.push(arguments); }
7  window.gtag = window.gtag || gtag;
8
9  /* ?ga4debug=1 で着地するとセッション中 debug_mode を維持(thanks遷移後もDebugViewで追える) */
10  var debug = false;
11  try {
12    if (/[?&]ga4debug=1/.test(location.search)) { sessionStorage.setItem('mirror_ga4_debug', '1'); }
13    debug = sessionStorage.getItem('mirror_ga4_debug') === '1';
14  } catch (e) {}
15
16  var s = document.createElement('script');
17  s.async = true;
18  s.src = 'https://www.googletagmanager.com/gtag/js?id=' + ID;
19  document.head.appendChild(s);
20
21  gtag('js', new Date());
22  var cfg = { mirror_vendor: VENDOR };
23  if (debug) { cfg.debug_mode = true; }
24  gtag('config', ID, cfg);
25
26  /* フォーム送信成功後の /thanks/ 表示 = メールCV(全ミラー共通イベント名で集約) */
27  if (/^\/thanks\/?$/.test(location.pathname)) {
28    var ev = { mirror_vendor: VENDOR };
29    if (debug) { ev.debug_mode = true; }
30    gtag('event', 'cv_mirror_mail', ev);
31  }
32})();

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.