ジーユートップへ
これはGU公式サイトの技術的なJavaScriptコードであり、プレスリリースではない。ウェブとモバイルアプリを横断してユーザー行動を追跡し、サイトパフォーマンスを監視するアナリティクス機能(Goog
📋 記事の処理履歴
- 📰 発表: 2026年4月4日 00:03
GU(ジーユー)公式 ファッション通販サイト .b2f-overlay{ z-index: 50; } var GU_MOBILEAPP_PRESENT = false; var guIOSPattern = /gu ios application/i; var guAndroidPattern = /gu android application/i; var userAgent = navigator.userAgent; var environment = "production" var nativeAppAssetURL = environment === 'production' ? 'https://asset.fastretailing.com/gu/jp/mobileapp/v1/mobileapp.js' : 'https://stage-asset.fastretailing.com/gu/jp/mobileapp/v1/mobileapp.js' if (guIOSPattern.test(userAgent) || guAndroidPattern.test(userAgent)) { (function (firstScript) { var script = document.createElement('script'); script.type = 'text/javascript'; script.src = nativeAppAssetURL; firstScript.parentNode.insertBefore(script, firstScript); })(document.scripts[0]); GU_MOBILEAPP_PRESENT = true; } function logEvent(name, params) { if (!name) { return; } if (window.AnalyticsWebInterface) { // Call Android interface window.AnalyticsWebInterface.logEvent(name, JSON.stringify(params)); } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.firebase) { // Call iOS interface var message = { command: 'logEvent', name: name, parameters: params }; window.webkit.messageHandlers.firebase.postMessage(message); } } function setUserProperty(name, value) { if (!name || !value) { return; } if (window.AnalyticsWebInterface) { // Call Android interface window.AnalyticsWebInterface.setUserProperty(name, value); } else if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.firebase) { // Call iOS interface var message = { command: 'setUserProperty', name: name, value: value }; window.webkit.messageHandlers.firebase.postMessage(message); } } var dataLayer = [{ 'siteType': 'responsive' }]; var gtmEventHandler = function(element) { var d = element.dataset; var na = 'N/A'; var data = { 'event': 'trackEvent', 'eventCategory': d.category || na, 'eventAction': d.action || na, 'eventLabel': d.label || na, }; if ('value' in d) { data.eventValue = d.value; } if ('UQCustomerAppAndroid' in window && UQCustomerAppAndroid.receiveAnalyticsData) { // Android UQCustomerAppAndroid.receiveAnalyticsData(JSON.stringify(data)); } else if ('webkit' in window && webkit.messageHandlers && webkit.messageHandlers.receiveAnalyticsData && webkit.messageHandlers.receiveAnalyticsData.postMessage) { // iOS webkit.messageHandlers.receiveAnalyticsData.postMessage(data); } // Send Datalayer for both Browser and Native App if available if(dataLayer) { dataLayer.push(data); } }; (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;var n=d.querySelector('[nonce]'); n&&j.setAttribute('nonce',n.nonce||n.getAttribute('nonce'));f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-NMD6F5H'); window.__BUILD_VERSION__ = "3.2500.2"; window.__LOCALISATION_VERSION__ = "26.4.0-default.38"; window.__DS_VERSION__ = "gu-global-ec-uikit: v23.7.4"; window.__SSR__ = true; !function(e){var n="https://s.go-mpulse.net/boomerang/";if("False"=="True")e.BOOMR_config=e.BOOMR_config||{},e.BOOMR_config.PageParams=e.BOOMR_config.PageParams||{},e.BOOMR_config.PageParams.pci=!0,n="https://s2.go-mpulse.net/boomerang/";if(window.BOOMR_API_key="9VM32-GXRFY-Y2BSZ-NBJZQ-HQ2VR",function(){function e(){if(!o){var e=document.createElement("script");e.id="boomr-scr-as",e.src=window.BOOMR.url,e.async=!0,i.parentNode.appendChild(e),o=!0}}function t(e){o=!0;var n,t,a,r,d=document,O=window;if(window.BOOMR.snippetMethod=e?"if":"i",t=function(e,n){var t=d.createElement("script");t.id=n||"boomr-if-as",t.src=window.BOOMR.url,BOOMR_lstart=(new Date).getTime(),e=e||d.body,e.appendChild(t)},!window.addEventListener&&window.attachEvent&&navigator.userAgent.match(/MSIE [67]\./))return window.BOOMR.snippetMethod="s",void t(i.parentNode,"boomr-async");a=document.createElement("IFRAME"),a.src="about:blank",a.title="",a.role="presentation",a.loading="eager",r=(a.frameElement||a).style,r.width=0,r.height=0,r.border=0,r.display="none",i.parentNode.appendChild(a);try{O=a.contentWindow,d=O.document.open()}catch(_){n=document.domain,a.src="javascript:var d=document.open();d.domain='"+n+"';void(0);",O=a.contentWindow,d=O.document.open()}if(n)d._boomrl=function(){this.domain=n,t()},d.write(" ");else if(O._boomrl=function(){t()},O.addEventListener)O.addEventListener("load",O._boomrl,!1);else if(O.attachEvent)O.attachEvent("onload",O._boomrl);d.close()}function a(e){window.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!window.BOOMR||!window.BOOMR.version&&!window.BOOMR.snippetExecuted){window.BOOMR=window.BOOMR||{},window.BOOMR.snippetStart=(new Date).getTime(),window.BOOMR.snippetExecuted=!0,window.BOOMR.snippetVersion=12,window.BOOMR.url=n+"9VM32-GXRFY-Y2BSZ-NBJZQ-HQ2VR";var i=document.currentScript||document.getElementsByTagName("script")[0],o=!1,r=document.createElement("lin
よくある質問
このコードは何をしていますか?
ウェブサイト訪問者がGUの公式モバイルアプリを使っているかを判別し、Googleアナリティクス等でユーザー行動を追跡・分析するためのものです。
なぜこれが重要ですか?
顧客の利用環境(ウェブ vs アプリ)に応じた最適な体験を提供し、マーケティング施策の効果を測定するために不可欠な技術です。
Boomerangとは何ですか?
ウェブサイトの表示速度や応答性などのパフォーマンスを実ユーザー環境で測定するためのツールで、顧客体験の向上を目的としています。