Antwort #6 am: 07. September 2021, 11:52:29
Zunächst mal danke für deine Hinweise noRidde aber ...
nun bin ich völlig verwirrt.
Zum Consent:
Ich habe einen einfachen Banner eingebaut und in
include - extra - application_bottom - cookie consent.php
hinterlegt
<script defer="defer" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#efefef",
"text": "#404040" ...
Beim nächsten Shop-Update habe ich mich dann gefreut, dass die cookieconsent.min.js in euren Templates bereits enthalten ist und habe den Eintrag in application_botton entfernt.
In Sachen Google-Tracking habe ich nur deaktiviert und nichts eingebaut.
Den Code habe ich nun allerdings gefunden. (Bei diesen Sachen habe ich noch nie etwas geändert)
$beginCode = '
<script type="text/javascript">
// Set to the same value as the web property used on the site
var gaProperty = \''.$account.'\';
// 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;
}
Er stand in der vorherigen Version in der
include - external - smarty - plugins - function.googleanalytics.php
und ist nun in
include - extra - application_bottom - 10_google_analytics.php
zu finden.
Daher also mein Vermutung dass ich etwas falsch in der Datenbank hinterlegt habe aber da steht alles so wie es sein soll.
[ Für Gäste sind keine Dateianhänge sichtbar ]
Wenn ich nun die 10_google_analytics.php entferne, dann sollte Script und Cookie doch eigentlich weg sein, oder?
Vielleicht ist ja ein Fehler drin, der nicht aufgefallen ist, da ein Shop ohne Analytics undenkbar ist.