1/*https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain#ignoring_self-referrals */ 2(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 3(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 4m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 5})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 6 7console.log('drupal loaded google-analytics'); 8 9function activateGoogleAnalytics() { 10 ga('create', 'UA-3401285-1', 'auto'); 11 ga(function(tracker) { 12 // Gets the client ID of the default tracker. 13 var clientId = tracker.get('clientId'); 14 15 // Gets a reference to the window object of the destionation iframe. 16 var frameWindow = document.getElementById('erkina-iframe').contentWindow; 17 18 // Sends the client ID to the window inside the destination frame. 19 var drupalHost = document.location.hostname; 20 var targetDomain = window.drupalSettings.cc_domain; 21 //var targetDomain = 'https://cc.careersportal.ie'; 22 if (drupalHost == 'saoloibre.ie') 23 targetDomain = 'https://cc.saoloibre.ie'; 24 25 if (drupalHost == 'tourismcareers.ie') { 26 ga('send', 'pageview'); 27 } 28 if (drupalHost == 'careersportal.ie') { 29 ga('send', 'pageview'); 30 } 31 //console.log('drupal postmessage from \'' + drupalHost + '\' to \'' + targetDomain + '\''); 32 frameWindow.postMessage({ source: "googleAnalytics", clientId: clientId }, targetDomain); 33 //console.log('message sent drupal ' + JSON.stringify({ source: "googleAnalytics", clientId: clientId }) ); 34 }); 35} 36 37if (document.readyState == 'complete') { 38 //console.log('drupal readystage ' + document.readyState); 39 activateGoogleAnalytics(); 40} 41else { 42 document.addEventListener('readystatechange', (event) => { 43 //console.log('drupal readystagechange ' + document.readyState); 44 if (document.readyState == 'complete') { 45 activateGoogleAnalytics(); 46 } 47 }); 48}
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.