They remember a user has already verified their age so they aren’t bugged every time they change pages.
Not suitable for regulated industries. Suitable for "adult humor" or art galleries with disclaimers. age gate squarespace
// On button click, verify and hide gate $('#enter-btn').on('click', function(e) e.preventDefault(); sessionStorage.setItem('ageVerified', 'true'); $('#age-gate').fadeOut(); ); ); </script> They remember a user has already verified their
For high-volume stores or businesses that need strict legal compliance, a third-party widget is the gold standard. Tools like , AgeChecker.Net , or Powr offer dedicated age verification plugins. Why use a widget? // On button click, verify and hide gate $('#enter-btn')
In Squarespace, go to > Developer Tools > Code Injection . Paste the script into the Header section. 4. The Custom Route: Code Injection (Advanced)
If you are selling alcohol, cannabis, or adult content, the DIY JavaScript method might not be legally robust enough.
Here is a comprehensive guide on how to implement an age verification system on Squarespace. 1. The Native Method: Using a Promotional Pop-Up