1// GA4pf[^C[gpé¾ 2//------------------------------------------------------------------------------------------------------------------------+ 3window.GA4Layer = window.GA4Layer || []; 4// GA4pf[^C[gpé¾ 5//------------------------------------------------------------------------------------------------------------------------+ 6 7(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 8(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 9m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 10})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); 11 12var _gaq = _gaq || []; 13 14var useragent = navigator.userAgent.toUpperCase(); 15var site = 'PC or SP'; 16if(useragent.indexOf("JAPANETAPP") >= 0 || useragent.indexOf("JAPANET-APP") >= 0){ 17 //Av 18 site = 'SP-APP'; 19}else if(useragent.indexOf("IPHONE") >= 0 || (useragent.indexOf("ANDROID") >= 0 && useragent.indexOf("MOBILE") >= 0)){ 20 //IPHONE,AhChX}z 21 site = 'SP'; 22}else if(useragent.indexOf("IPAD") >= 0 || (useragent.indexOf("ANDROID") >= 0 && useragent.indexOf("MOBILE") < 0)){ 23 //IPAD,AhCh^ubg 24 site = 'PC'; 25}else{ 26 site = 'PC'; 27} 28 29//GA4pJX^fBV1 30GA4Layer.push({'site' : site}); 31 32//cookieæèANZXIDæ¾ 33//uEUÝèÅcookieª³ø»³êÄ¢éê͵Ȣ 34if ( document.cookie != undefined && document.cookie != ""){ 35 //cookieÌeÚðªµÄXg» 36 var cookies = document.cookie.split(";"); 37 var access_id = ""; 38 39 //XgÅ[vAANZXIDÌL[ðTµÄlðæ¾ 40 for (var i = 0; i < cookies.length; i++){ 41 var cookieKV = cookies[i].split('='); 42 if( cookieKV[0].trim() == 'access_id'){ 43 access_id = cookieKV[1].trim(); 44 break; 45 } 46 } 47 48 //GA4pJX^fBV9(ANZXID) 49 GA4Layer.push({'access_id' : access_id}); 50 51} 52 53//GTM ÃIy[W(PCSP¤Ê)pßÝî{^O
vendor: 328 bytes, lines 53-58
53 54(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 55new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 56j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 57'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 58})(window,document,'script','dataLayer','
58GTM-KT9NVB
vendor: 5 bytes, lines 58-59
58'); 59
60document.addEventListener('DOMContentLoaded', firstscript ); 61function firstscript(){ 62 var bodytag = document.querySelector('body'); 63 var insertGTM = '
vendor: 67 bytes, line 63
63<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=
63GTM-KT9NVB
vendor: 82 bytes, line 63
63" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
63'; 64 bodytag.insertAdjacentHTML('afterbegin', insertGTM); 65}
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.