Positioning of cleantalk cookie-setting script
-
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.
- The topic ‘Positioning of cleantalk cookie-setting script’ is closed to new replies.