var gaProperty = 'UA-99016982-1'; var disableStr = 'ga-disable-' + gaProperty; if (document.cookie.indexOf(disableStr + '=true') > -1) { window[disableStr] = true; } function gaOptout() { alert('Optout erfolgreich'); document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; } jQuery(document).on('click', 'a[href*="gaOptout"]', function(e){e.preventDefault(); gaOptout();})
Nach oben