########### Google Opt-Out
########### https://die-netzialisten.de/wordpress/google-analytics-um-einen-optout-link-ergaenzen/
########### in typo3 template
page.headerData.60 = TEXT
page.headerData.60.value (
<script type="text/javascript">// <![CDATA[
// Set to the same value as the web property used on the site
var gaProperty = 'UA-XXXX-Y';

// Disable tracking if the opt-out cookie exists.
var disableStr = 'ga-disable-' + gaProperty;
if (document.cookie.indexOf(disableStr + '=true') > -1) {
window[disableStr] = true;
}

// Opt-out function
function gaOptout() {
document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/';
window[disableStr] = true;
}
</script>
)


###########
## in datenschutzerklärung
<a onclick="alert('Google Analytics wurde deaktiviert');"
href="javascript:gaOptout()">Google Analytics deaktivieren</a>

computer2know :: thank you for your visit :: have a nice day :: © 2024