Dados Legais - Altoga.com Software de Gestão e RH
scrollFlag = true; scrollFlagCounter = 0; function enableScrollTracker() { scrollTracker(); window.addEventListener("scroll", scrollTracker); scrollFlag = true; } function scrollTracker() { if (scrollFlag) { scrollFlag = false; scrollFlagCounter = scrollFlagCounter + 1; gtag('event', 'min_scroll', { 'eventCategory': 'MinimalCustomEvents', 'eventAction': 'Scroll', 'eventLabel': 'Scroll-'+scrollFlagCounter }); setTimeout(enableScrollFlag, 30000); } } function enableScrollFlag() { scrollFlag = true; } function send40secEvent() { gtag('event', 'time_msec_40_s', { 'eventCategory': 'MinimalCustomEvents', 'eventAction': 'Time', 'eventLabel': '40s' }); } setTimeout(enableScrollTracker, 10000); setTimeout(send40secEvent, 40000); function createTrackingLinks() { var l = document.links; for (var i = 0; i < l.length; i++) { if (l[i].href.indexOf('Estimativas.html') > 0) { if (window.location.hostname == "www.altoga.com"){ l[i].href = l[i].href.replace("www.minimal.pt","www.altoga.com") } l[i].setAttribute('onclick', "openLinkTracker('" + l[i].href + "');return false;"); //l[i].href = "javascript:openLinkTracker('" + l[i].href + "');" //l[i].target =""; }; } } function openLinkTracker(link) { label = ''; pos = link.indexOf("P="); if (pos == -1) { label = 'Home'; } else { switch (link[pos + 2]) { case 'C': label = 'Comunicacao' break; case 'O': label = 'Operacional' break; case 'F': label = 'Financeira' break; case 'H': label = 'RecursosHumanos' break; default: label = 'Outros'; } } gtag('event', 'min_estimativas', { 'eventCategory': 'MinimalCustomEvents', 'eventAction': 'Estimativas', 'eventLabel': label }); if (window.location.hostname == "www.altoga.com"){ link = link.replace("www.minimal.pt","www.altoga.com") } window.open(link); } createTrackingLinks();