Upon accepting or enabling Functional Cookies and reloading the page, it works as intended. I’m curious as to why the CookieYes plugin is blocking certain JavaScript files. How can we ensure that the page functions correctly regardless of whether Functional Cookies are enabled or disabled?
]]>[redacted]/wp-content/plugins/sassy-social-share/includes/../public/js/sassy-social-share-public.js
/wp-content/plugins/sassy-social-share/includes/../public/js/sassy-social-share-public.js
sassy-social-share-public.js
None of these succeed at blocking the JS file until permission is granted. I’ve set the placeholder to target a DIV class and it does this perfectly. It’s just the associated JS file still loads.
I’ve blocked external scripts using this method, but it doesn’t seem to intercept the local plugin-loaded JS files.
Any ideas on what I’m doing wrong? Is it possible to target it by the script ID registered within WordPress (heateor_sss_sharing_js)?
If I save this script, the script is changed the below.
Each time I save it, the slash will be increased.
Please tell me how can I solve this problem?
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-ID');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\':
new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=
\'https://www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,\'script\',\'dataLayer\',\'GTM-ID\');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\\\'gtm.start\\\':
new Date().getTime(),event:\\\'gtm.js\\\'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=\\\'dataLayer\\\'?\\\'&l=\\\'+l:\\\'\\\';j.async=true;j.src=
\\\'https://www.googletagmanager.com/gtm.js?id=\\\'+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,\\\'script\\\',\\\'dataLayer\\\',\\\'GTM-ID\\\');</script>
<!-- End Google Tag Manager -->
]]>Sometimes it works on the index page in an incognito window.
It’s possible it’s interacting weirdly with SWUP, an ajax page loader we have on the site?
Or perhaps it’s storing the ‘declined’ value somewhere else? (I’m checking Inspector > Application > cookies < [the site])
I’m basically wanting to show a notice on the donation page if they don’t have cookies active (as they’re necessary). But checking for a custom cookie that’s generated when the blocked scripts appear isn’t working (as the blocked scripts aren’t being added back).
I was also trying to use the cn_cookies_accepted(); function, but it kept saying it couldn’t find it.
]]>I get the following error when attempting to enabled script blocking and the script blocking page therefore does not work.
An error of type E_COMPILE_ERROR was caused in line 411 of the file .../wp-content/plugins/cookie-law-info/admin/views/admin-settings-buttons.php. Error message: require(): Failed opening required 'admin-settings-save-button.php' (include_path='.:/usr/share/php74/pear:/usr/share/php74')
Is there a solution for this?
Thank you
]]>We want to inform you that, to our knowledge, the operation is not correct. I try to explain myself, in case the configuration of the plugin was not correct on our part.
The website has the Google Analytics script embedded in the corresponding plugin section called “Script blocker”. See attached image: https://bit.ly/34gkzka.
We understand that according to the notice and the description of the plugin, only the necessary and technical cookies should be loaded (https://bit.ly/31vWhky), which in this case are the 2 cookies that the plugin itself has (wpl_viewed_cookie and wpl_user_preference) and this is not really what happens, anymore that the Google analytical cookies that we wanted to block are also loaded (https://bit.ly/31x1XKX) until the user gave their approval (https://bit.ly/3ofJhcj).
On the other hand and if it were the case, since the user had accepted, for example, the analytical cookies after enabling them in the section and pressing the “Save and Accept” button, and these will be installed, when the user, if applicable, If you press the “Reject Cookies” button, we understand that the correct behavior should be for the plugin to force the deletion of such cookies and prevent their storage until the user gives their consent again.
In our case, in the meantime, we are forced to remove the Google Analytics code from the script blocking section of the plugin to prevent cookies from being installed without prior consent.
We are waiting for your news, since here in Spain, it is mandatory to comply with this regulation as of October 30, since the risk of non-compliance entails important economic sanctions.
Thank you very much!
]]>For this Awin-code i tried different head-insert plugins, because i’m not a developper. Unfortunately it’s always located AFTER the Google Tag. I tried different plugins for this. Is it somehow possible to influence the position of the Google Tag? Thank you in advance.
Regards,
Harry
Otherwise, the code snippet in the script blocking section will not be inserted until the user (re)loads a new page.
Is there a way to automatically insert the scripts once the user gives consent?
]]>