• Resolved adz1111

    (@adz1111)


    Hi

    I use cookiebot – and one of its excellent features disables all cookies when a visitor first comes to the site, only enabling them AFTER the visitor gives appropriate cookie consent. However, this doesn’t apply to any cookies marked as “necessary” (which I have done for the cleantalk cookies). So for cleantalk, this will be perfectly okay.

    However, the cookiebot script MUST be the very first script on a page for that feature to work – OR – for the cookie script (e.g. cleantalk’s) to have the ‘data-cookieconsent=”ignore” ‘ attribute, e.g:

    <script type='text/javascript' data-cookieconsent='ignore'>
       function ctSetCookie___from_backend(c_name, value) 
          {document....
    </script>

    Now, I could probably find that script definition and add that attribute myself, however, whenever you guys update the plugin that will be overwritten. So my question is, what can I (or you guys) do to overcome that, please?

    The easiest, from my perspective, is maybe under the plugin’s advanced settings to provide a field where I could (optionally) add a script attribute like: data-cookieconsent=’ignore’, which then gets added to all cleantalk scripts,

    AND/OR,

    Maybe allow the position of any cleantalk scripts to adjusted – e.g top of head tag, bottom of head tag, top of footer tag, bottom of footer tag – so I can make sure it’s after the cookiebot script.

    Many thanks.

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Support SergeM

    (@serge00)

    Thank you for your reply.

    I’ve passed it to the programmer staff. Please, wait 1-2 business days.

    Hello,

    There is no cache or CDN in play in the above scenario?

    I think it is. CDN could cause it.

    Unfortunately, magic is not exist. Something cached it. It’s the only possible situation. Please, try to clear the cache again.

    Contact us on the results.

    Thread Starter adz1111

    (@adz1111)

    You “think” it is? Based on what, exactly?

    I ran it on a site with no extra caching and no CDN running and the default twenty-twenty theme. Didn’t work. I also ran it with “/?nocache” to be sure that caching wasn’t in the mix.

    To be further sure it is nothing to do with caching I have now spun up a brand new vanilla test site, and added the plugin you sent me – and guess what? Same result.

    So I have 2 lots of empirical results now showing it’s not working and that caching/CDN is not involved – and you just “think” I’m wrong? Now, I’m happy to be shown to be wrong and shown I may have missed something, but you need to do the same.

    The most likely scenario here is that that the code I have from you is not the same as what you are running. Where in the code can I go to confirm I’m actually running the same as you (where are you adding the attribute? That would at least eliminate that as a possibility?

    Thanks

    Thread Starter adz1111

    (@adz1111)

    oh – I meant to add, this is the URL of the new vanilla test site if you want to check for yourself: https://firstdigital-it.com

    Plugin Support SergeM

    (@serge00)

    Thank you for your feedback.
    I’ve passed it to the programmer staff.
    Please, wait 1-2 business days.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Positioning of cleantalk cookie-setting script’ is closed to new replies.