Page 1 of 1

cookie banner

Posted: Wed Sep 25, 2024 2:30 pm
by Joan Ferrer
Hi
I have implemented a cookie banner with https://www.cookieconsent.com
On some pages it works and on others it doesn't.

I have detected the following:
The code has to be placed in: After <Body>
The code is the following:

<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script type="text/javascript" src="https://www.termsfeed.com/public/cookie ... consent.js" charset="UTF-8"></script>
<script type="text/javascript" charset="UTF-8">
document.addEventListener('DOMContentLoaded', function () {
cookieconsent.run({"notice_banner_type":"simple","consent_type":"express","palette":"light","language":"ca_es","page_load_consent_levels":["strictly-necessary"],"notice_banner_reject_button_hide":false,"preferences_center_close_button_hide":false,"page_refresh_confirmation_buttons":false,"website_name":"https://www.fotografiamanresa.es/decora ... okies.html"});
});
</script>

<noscript>Free cookie consent management tool by <a href="https://www.termsfeed.com/">TermsFeed</a></noscript>
<!-- End Cookie Consent by TermsFeed https://www.TermsFeed.com -->





<!-- Below is the link that users can use to open Preferences Center to change their preferences. Do not modify the ID parameter. Place it where appropriate, style it as needed. -->

<a href="#" id="open_preferences_center">Update cookies preferences</a>

I publish with wwwb and:
On the pages that don't work, I have edited index.html with the text editor and the code is as follows:
<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script src="https://www.termsfeed.com/public/cookie ... consent.js" charset="UTF-8"></script>
<noscript>Free cookie consent management tool by <a href="https://www.termsfeed.com/">TermsFeed</a></noscript>
<!-- End Cookie Consent by TermsFeed https://www.TermsFeed.com -->


<!-- Below is the link that users can use to open Preferences Center to change their preferences. Do not modify the ID parameter. Place it where appropriate, style it as needed. -->
<a href="#" id="open_preferences_center">Update cookies preferences</a>


I understand that there is a missing code.
I replaced the code with the one that works and from then on, the page that was not working works correctly.

I don't know if I explained myself correctly.

What could be the cause? What am I doing wrong?
Thanks.

Re: cookie banner

Posted: Thu Sep 26, 2024 3:06 pm
by johnsmith0251
In settings, under HTML - do you have any of the JavaScript settings checked off?

Re: cookie banner

Posted: Fri Sep 27, 2024 7:54 am
by Joan Ferrer
I have checked and I don't see any restrictions.
Tnk's