• 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 15 replies - 1 through 15 (of 21 total)
  • Plugin Support SergeM

    (@serge00)

    Hello, @adz1111.

    We will look through the issue as soon as possible and contact you when we get any results.

    It may take up to 1-2 business days. Please, wait.

    Hello,

    I think i will be more apropriate to make this:

    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,

    We’ll discuss this and contact you tomorrow.

    Hello,

    Thank you for the feedback! We have fixed the problem.

    Please, reinstall the plugin. ( Download link: https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip )

    Here is an instruction:

    1. Go to WordPress Administrator Panel —> Plugins.
    2. Find the plugin “Spam Protection by CleanTalk” —> Deactivate.
    3. After the automatic page refresh find the plugin again “Spam Protection by CleanTalk” —> Delete. Confirm “Yes, delete these files”.
    5. Go to Plugins —> Add New —> Upload Plugin.
    4. Download the plugin archive from the link above.
    6. Choose the downloaded archive and press “Install Now”.

    Contact us if you have any questions.

    Thread Starter adz1111

    (@adz1111)

    Hi there

    I have done that but notice no difference. What should I be seeing?

    Secondly, should I have checked the very last option, “complete deactivation” in Advanced Settings (before deactivating) to delete all data first?

    Thanks

    Plugin Support sergecleantalk

    (@sergecleantalk)

    We’ve added the attribute you want to each script attachment and inline script.

    Thread Starter adz1111

    (@adz1111)

    Hi

    Nope – can’t see any new attribute added (plugin version unchanged too) – this is the start of the script that shows…

    <script type=’text/javascript’ >function ctSetCookie___from_backend(c_name….

    Did you see my second point, is that required?

    Thanks

    Plugin Support sergecleantalk

    (@sergecleantalk)

    Did you try to refresh the page with CTRL+F5?

    Thread Starter adz1111

    (@adz1111)

    Yes – and cleared all the browser and page caches and CDNs – you can see for yourself if you visit the site (https://elixirweb.studio).

    You’ve not answered about the second point I made earlier – did I need to have wiped all the data via the Advanced Settings BEFORE deactivating?

    Plugin Support sergecleantalk

    (@sergecleantalk)

    did I need to have wiped all the data via the Advanced Settings BEFORE deactivating?

    Usually, it’s not required. Could you try to do this if nothing helps?

    Thread Starter adz1111

    (@adz1111)

    Ok – tried that too – again no noticeable difference. Again by all means check the page source on my home page (around line 7).

    You’re sure you sent me the modified plugin (the version is still 5.146.1)?

    Plugin Support sergecleantalk

    (@sergecleantalk)

    We will check this. We will contact you within 24h

    Hello,

    Add a new fix. Version is 5.146.2. Please, use CTRL + F5 before you the check.
    The link and instruction is the same:

    Please, reinstall the plugin. ( Download link: https://github.com/CleanTalk/wordpress-antispam/releases/download/dev-version/cleantalk-spam-protect.zip )

    Here is an instruction:

    1. Go to WordPress Administrator Panel —> Plugins.
    2. Find the plugin “Spam Protection by CleanTalk” —> Deactivate.
    3. After the automatic page refresh find the plugin again “Spam Protection by CleanTalk” —> Delete. Confirm “Yes, delete these files”.
    5. Go to Plugins —> Add New —> Upload Plugin.
    4. Download the plugin archive from the link above.
    6. Choose the downloaded archive and press “Install Now”.

    Contact us if you have any questions.

    Thread Starter adz1111

    (@adz1111)

    Hi,

    Right – uploaded newer version.

    Cleared CDN, browser cache, page cache etc. Loaded home page and did CTRL+F5, plus also tried https://elixirweb.studio/?nocache – script still looks unchanged to me I’m afraid? See screenshot:

    https://share.yourscope.co.uk/P8uyj1xL

    I’m presuming, if working, I would see the attribute added in the highlighted bit?

    Thanks

    Hello,

    Version is correct but looks like the cache is breaking new script tags. See the screenshot for our test website: https://skr.sh/i/011020/7WdH64Ff

    I can suggest that it’s the CDN. All necessary code is in the plugin.

    • This reply was modified 4 years, 5 months ago by Safronik.
    • This reply was modified 4 years, 5 months ago by Safronik.
    Thread Starter adz1111

    (@adz1111)

    Hi

    Okay – I see it in your image – however that is not what I see on my site.

    To make sure it’s not a conflict I have deactivated all plugins, except yours, and activated the twenty-twenty theme – this is what I get: https://share.yourscope.co.uk/kpuwovw0

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

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