Google Analytics-Probleme
-
Liebe Wodpress-Foren,
Ich habe ein Google-Analytics Problem.Ich habe alles soweit eingerichtet,doch mein Opt Out für Google Analytics funktioniert nicht.Ich habe alle Plugins,Codes und weiteres versucht.Bitte helfen sie mir,damit ich DSGVO-Konform bin.Auf der verlinkten Seite gibt es 5. Analyse Tools und Werbung.Dort sieht Man ein abschnitt,wo man Google Analytics abschalten kann,doch es geht nicht.Meine Plugins haben nicht funktioniert und mein Code vor <head> Bereich sieht so aus:
<?php wp_head(); ?>
<script>
// Set to the same value as the web property used on the site
var gaProperty = ‘UA******’;// 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><!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-152831590-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA*******’);
</script></head>
Ich habe mein Traking Code extra zensiert.Dazu noch habe ich in meiner Datenschutzerkl?rung diesen Code eingefügt:Click here to opt-out of Google Analytics.Ich habe keine Ahnung warum das nicht funktioniert.
!!!Bitte helfen sie mir!!!
Mit freundlichen Grü?en
Melih Shyukri
The page I need help with: [log in to see the link]
- The topic ‘Google Analytics-Probleme’ is closed to new replies.