1var _gtmDomain = new URLSearchParams(window.location.search).get('my_domain') || window.location.hostname; 2var _isIndonesia = _gtmDomain.includes('indonesiafxpro.com'); 3var _gtmContainerId = _isIndonesia ? 'GTM-5RVD2KJN' : 'GTM-WGF6FQL'; 4 5(function(w, d, s, l, i) { 6 w[l] = w[l] || []; 7 w[l].push({ 8 'gtm.start': new Date().getTime(), 9 'event': 'gtm.js', 10 }); 11 12 const f = d.getElementsByTagName(s)[0], 13 j = d.createElement(s), 14 dl = l != 'dataLayer' ? '&l=' + l : ''; 15 16 j.async = true; 17 j.src 18 = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; 19 20 j.onload = () => { 21 try { 22 const { user, abToolResult } = HYDRATION_DATA.ssrData; 23 const regulator = user.jurisdiction.defaultRegulator; 24 const event = (regulator && regulator.toUpperCase()) + 'PageLoaded'; 25 26 window.dataLayer.push({ 27 event: event, 28 value: true, 29 language: HYDRATION_DATA.ssrData.lang, 30 countryByIp: user.country, 31 userExperiments: decodeURI(abToolResult), 32 }); 33 } catch (e) { 34 console.error('GTM analytic went wrong, dataLayer not found', e); 35 } 36 }; 37 38 f.parentNode.insertBefore(j, f); 39})(window, document, 'script', 'dataLayer', _gtmContainerId);
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.