Forum
30.11.2016, 09:51

Abmahngefahr: Verwendung von Google Analytics ohne Opt-Out Cookie

Sehr geehrte POWERGAP Kunden,

aufgrund aktueller Hinweise zu "Verwendung von Google Analytics ohne Opt-Out Cookie" haben wir bei Nutzung von www.powergap.de/Google-Analytics-Universal-Tracking.html unseren Standard-Code um folgendes Script erweitert:

<script>
// 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>


Jetzt müssen Sie noch handeln und z.B. im Footer des Shops folgenden Link ergänzen:

<a href="javascript:gaOptout()">Google Analytics deaktivieren</a>

oder besser noch mit JavaScript-Alert:

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

Mit Klick auf diesen Link wird ein Cookie gesetzt und Google Analytics beim Kunden deaktiviert!

Siehe auch: https://developers.google.com/analytics/devguides/collection/gajs/?hl=de#disable

Sollten Sie Fragen zur Einbindung haben bitte einfach melden!


Forum-Archiv

Alle Beiträge aus:

2026, 2025, 2024, 2023, 2022, 2021, 2020, 2019, 2018, 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002,