cookie banner

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Joan Ferrer
 
 
Posts: 112
Joined: Sat Apr 25, 2020 5:17 pm
Contact:

cookie banner

Post 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.
johnsmith0251
 
 
Posts: 269
Joined: Mon Aug 20, 2018 6:47 pm

Re: cookie banner

Post by johnsmith0251 »

In settings, under HTML - do you have any of the JavaScript settings checked off?
Joan Ferrer
 
 
Posts: 112
Joined: Sat Apr 25, 2020 5:17 pm
Contact:

Re: cookie banner

Post by Joan Ferrer »

I have checked and I don't see any restrictions.
Tnk's
Post Reply