Google Analytics neu/alt richtig einstellen

holzpuppe

Sehr aktives Mitglied
14. Oktober 2011
1.715
260
Leipzig
Moin,

es geht um Google Analytics, zwar habe ich hier schon quer gelesen aber nicht die Antworten gefunden die ich suche:

Hat sich schon mal jemand so genau damit beschäftigt?

https://www.datenschutzbeauftragter...oogle-analytics-datenschutzkonform-einsetzen/

Hat hier jemand nen physischen Vertrag (so richtig mit Papier und Unterschrift) mit Google geschlossen? (Ich weiss es nicht mehr, falls ja ist das sehr sehr lange her und wurde von Google selbst ausgelöst. o_O)

Wenn ich dann lese dass ich irgendwo in einer analytics.js einen Code eintragen soll, aber in JTL noch die ga.js vorhanden ist steigt mein Blutdruck höher als der einer Sektflasche.
Und hier liest man "musst nur deine UA-xxx eintragen". Da will ich eigentlich nur noch das Haus abfackeln. Jedes egal welches. xD
Oder es gibt eine kostenpflichtige Pluginlösung.

Code:
Here's a simple example of some code you can use to provide opt-out   functionality for your users.

 First, add a new HTML link to your site to execute the opt-out logic:

  
<a href="javascript:gaOptout()">Click here to opt-out of Google Analytics</a>  Then add the following snippet of code [B]before[/B] the ga.js   code snippet. Make sure to replace the value of gaProperty from   UA-XXXX-Y to the property used on your site.   This is the same value that you pass to the _setAccount   command.

  
<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>  When a user clicks the opt-out HTML link, the custom   gaOptout function will execute. It will set a cookie   for a long time in the future and disable analytics.js data collection.   When a user returns to this site, the script above will check to see if the   opt-out cookie has been set. If it has, then the analytics.js data   collection will also be disabled.

Ich bin doch richtig, wenn ich schon mal erkannt habe, weder die ga.js noch die analytics.js sind physisch bei meinem JTL- Shop vorhanden?
Ergo muss ich in irgendeiner "Hauptdatei" im <head> den Schnulli eintragen? Oder doch nicht, nur einen Link zu dem Code der dann in einer *.php oder in Salzlake eingelegt ist.

So wie ich das hier sehe ist ohne Opt out Eintragung und _anonymizeIp() man als Shop abmahngefährdet?
Wie kann ich das nachprüfen bzw. dann korrekt eintragen/ergänzen?

*arg*
 

NETZdinge.de

Sehr aktives Mitglied
7. April 2010
2.626
405
AW: Google Analytics neu/alt richtig einstellen

Also der JTL Shop nutzt noch den alten Googel Analytics Code. Da ist (bin mir nicht ganz sicher) kein anonymize_ip dabei und Opt out schon gar nicht...

die entsprechenden Änderungen müssen in der Datei /tpl_inc/footer.tpl und /tpl_inc/bestellabschluss_conversion_tracking.tpl gemacht werden...

oder mein Plugin benutzen:
http://www.netzdinge.de/plugin-google-codes-universal-analytics-adwords-remarketing.html
 

holzpuppe

Sehr aktives Mitglied
14. Oktober 2011
1.715
260
Leipzig
AW: Google Analytics neu/alt richtig einstellen

Ach herrje. Danke Dir für die Antwort. Alles grad zu warm um zu "basteln" ich gugg mal wenn es wieder kühler wird. .... Oder der nächste JTL Shop raus ist.