Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>/* quiet-cookie-banner */
- // Add this code to the footer tracking section
- jQuery(function () {
- setTimeout(function () {
- if (localStorage.getItem('cookieSettingsSaved')) {
- // Make sure cookie banner is collapsed if settings have already been saved
- jQuery('div.gdpr_cookie_banner,div.gdpr_flapjack_banner').addClass('collapsed');
- }
- jQuery('button.gdpr_close').on('click', function () {
- localStorage.setItem('cookieSettingsSaved', 'yes');
- });
- }, 0);
- });
- </script>
Advertisement
Comments
-
- Does this still work? I have tried this and it didn't help. Do I paste the whole thing or just a part? I tried whole thing as well as just the part after "add this code to the footer tracking section". Plz send help lol
Add Comment
Please, Sign In to add comment