how to disable/enable PPHLOGGER Cookies?
Hello,
the implementation of Cookiebot's Cookie Declaration was really easy! The instruction how to enabe/disable the Googleads and Google-analytics Cookies I didn't understand at all, but I found valuable hints here in the community (I have no experience with Javascript!).
Now one problem is left: Since many years I use webstatistics "PPHLOGGER" and I don't want to miss it. It uses the following term:
<script src="pphlogger.js"></script>
<noscript><img alt="" src="http://1a-ferienwohnungensylt.de/pphlogger/pphlogger.php?id=herbert.giese&st=img"></noscript>
I tried to handle it in the same manner as GoogleAds:
<script src="pphlogger.js" type="text/plain" data-cookieconsent="statistics"></script>
<noscript><img alt="" src="http://1a-ferienwohnungensylt.de/pphlogger/pphlogger.php?id=herbert.giese&st=img"></noscript>
But that doesn't work at all - the browser shows an empty page under "wyciwyg://0/http://myURL" (???)
Does anybody have an idea how to solve this problem?
-
Hi Herbert,
If you like, you could send me the domain at e.zaharieva@vconnect.dk or post it here, so I can check it and help you solve this issue afterwards.
Regards,
Elina0 -
Hi Elina,
my domain is http://1a-ferienwohnungensylt.de - the pphlogger-script you'll find in line 169/170 (index.html) and on all other subpages at a similar position short before the end.
Regards, Herbert
0 -
Hi Herbert,
In the "pphlogger.js" file there is a deprecated JavaScript function “document.write”, which is causing the problem.
Using this function the script is loaded synchronously and it will then clear the window content (generates blank page).
To prevent this issue please make sure that the script is loaded asynchronously since the Cookiebot triggers all scripts asynchronously (i.e. to wait for the visitor’s consent) in order to work properly.
You need rewrite the script to use a different approach e.g. “document.write = function(node) {document.body.insertAdjacentHTML(‘beforeend’, node);}”
More about why “document.write” is considered as a bad practice you can read here: https://stackoverflow.com/questions/802854/why-is-document-write-considered-a-bad-practice
Regards,
Elina0 -
Hi Elina,
thanks a lot for your help! It is good to know the reason WHY pphlogger doesn't work like it should do. Unfortunately I'm not able to rewrite the javascripts, so I'll leave it as it is for the moment and look around for replacement...
Best regards,
Herbert
0
Please sign in to leave a comment.
Comments
4 comments