Advertisement
briank

Quiet Kartra Cookie Banner

Aug 24th, 2022 (edited)
2,443
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.47 KB | None | 0 0
  1. <script>/* quiet-cookie-banner */
  2. // Add this code to the footer tracking section
  3. jQuery(function () {
  4. setTimeout(function () {
  5. if (localStorage.getItem('cookieSettingsSaved')) {
  6. // Make sure cookie banner is collapsed if settings have already been saved
  7. jQuery('div.gdpr_cookie_banner,div.gdpr_flapjack_banner').addClass('collapsed');
  8. }
  9. jQuery('button.gdpr_close').on('click', function () {
  10. localStorage.setItem('cookieSettingsSaved', 'yes');
  11. });
  12. }, 0);
  13. });
  14. </script>
Advertisement
Comments
  • cassthor
    319 days
    # text 0.21 KB | 0 0
    1. 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
Advertisement