Skip to main content

how to disable/enable PPHLOGGER Cookies?

Comments

4 comments

  • 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,
    Elina

    0
  • Herbert Giese

    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,
    Elina

    0
  • Herbert Giese

    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.