Website design Your Squarespace website, built for you Every Squarespell plugin and its installation free for life We design it, build it and hand it over to you Your website, built for you fromUSD 997
squarespell
Age Gate: Add an Age Verification Popup to Your Squarespace Site to Pinterest (opens in a new window)

Squarespace 7.1 plugin

Age Gate: Add an Age Verification Popup to Your Squarespace Site

Ask their age before they enter.

Price: $45

Choose your license

Instant download · Sold by Squarespell

Bundle & save

  • 2 plugins 10% off
  • 3 plugins 20% off
  • 4+ plugins 30% off

Automatically applied at checkout on Squarespell plugins.

Requires Squarespace 7.1 and the Core plan or higher (Code Injection).

  • How visitors answer Yes or No, date of birth, birth year
  • Looks Light card, Dark card, Full screen, Minimal
  • Languages English, German, French, Spanish, Italian, Dutch, Portuguese, Swedish, every word editable
  • Installation One paste in Code Injection, Header

Ask their age before they enter.

Ask every visitor their age before they see your Squarespace 7.1 site.

Good to know: Squarespace 7.1 only. Age Gate asks visitors their age and trusts the answer. It is not a regulated age verification method and does not check an ID. Code Injection needs the Core plan or higher.

  • The question

    Uses a different minimum age in the countries you choose, such as 21 in the United States and 18 elsewhere

  • Your site's look

    Takes your site's logo, fonts and colours

  • Search engines

    Age Gate covers the page and never moves visitors to a gate page.

See how it looks on your site.

Squarespace age verification guide cover: a laptop showing a wine shop with an age gate card asking Are you 21 or older with Yes and No buttons, under the title How to add age verification to Squarespace, 5 ways with an 18+ and 21+ age gate
An age gate in your site's own look.
All features in detail

Ask their age before they enter.

Ask every visitor their age before they see your Squarespace 7.1 site. Visitors answer Yes or No, enter their date of birth or the year they were born, and the minimum age can be different in the countries you choose. The gate takes your logo, fonts and colours, covers the page before it shows, and remembers the answer for as long as you set. One paste of code, one payment.

Shops that sell wine, spirits, beer, vapes or CBD, and sites with adult content, often have to ask visitors their age first. Age Gate puts a clear question over your Squarespace site in your own look, keeps the page out of sight until it is answered and lets search engines read the page as before.

Squarespace has no age check of its own. A password or a member area keeps everyone out, search engines included. Age Gate asks the question instead and leaves your pages as they are.

The code goes into Code Injection, Header, so the gate is on the screen before the page is painted and nothing of the page flashes. The page behind is blurred or hidden, cannot be scrolled or clicked, and keyboard users stay inside the gate. When the visitor passes, the gate fades out and the page is ready.

You set it up in a builder file that runs in your browser: pick a look, set the question, the ages and the pages, and see the gate on a sample shop as visitors in different countries and languages would see it. Then copy the code and paste it once.

What it does

  • Covers every page, or only the pages you choose, before it is shown
  • Asks Yes or No, the date of birth or the birth year
  • Uses a different minimum age in the countries you choose, such as 21 in the United States and 18 elsewhere
  • Remembers a yes for the number of days you set, or for this visit only
  • Shows a message or sends under-age visitors to a link, and can block them for this visit or a number of hours
  • Takes your site's logo, fonts and colours
  • Speaks the language of each page

The question

  • Yes or No: one click, the quickest for visitors.
  • Date of birth: day, month and year in the visitor's usual order, checked in the browser.
  • Birth year: one field, for a lighter check.
  • Any minimum age. Write {age} in the words and the gate shows the right number.
  • A different age in some countries, found from the visitor's time zone in the browser. Nothing is looked up or sent anywhere.

After the answer

  • Remember a yes for 1 day, 30 days, 1 year, any number of days, or this visit only.
  • Only "passed until" is kept in the visitor's browser. A date of birth is never kept or sent.
  • Under-age visitors see your message with a Leave this site button, or go straight to a link you choose.
  • After a No, the gate stays closed for this visit, for a number of hours you set, or offers Try again.

Where it shows

  • Every page, only the pages you list, or every page except the ones you list.
  • End an address with * to include everything under it, for example /shop/* for every product.
  • The gate never shows inside the Squarespace editor, so you can keep editing your site.
  • Add ?agegate=reset to any page address to see the gate again after you answered.

Your site's look

  • Four looks to start from: Light card, Dark card, Full screen and Minimal.
  • Your site's logo, found on the page, or a picture address, in its colours or in white.
  • Use my site's colours: the card takes your site's background, text and button colours, and your fonts always.
  • Or your own colours for the card, text and button, and the roundness of the corners.
  • Behind the gate: the page blurred and darkened, a plain colour, or a picture.
  • Small print under the gate, with links, for your terms or a responsible drinking note.
  • Made for phones as much as computers: big buttons and no sideways scrolling.

Languages

Add a language and the gate speaks the language of each page, from your site's language setting or a translated page. English, German, French, Spanish, Italian, Dutch, Portuguese and Swedish words are ready, and every word can be changed. The first language is used everywhere else.

Search engines

Google suggests that an age gate covers the page instead of sending visitors to another page, and that its crawler is let through an adult age gate. Age Gate covers the page and never moves visitors to a gate page. With Let search engines read the page switched on, the Google and Bing crawlers skip the gate. Your page text is in the page either way; the gate only covers it.

Change settings later

Open the builder again (it remembers your settings in that browser), make the change, click Copy code and paste it over the old Age Gate code in Code Injection, Header. The old code starts with a Squarespell Age Gate comment and ends with End Squarespell Age Gate.

Your license key

Your key is in the order email and under My Account, Licenses on squarespell.com. You enter it once in the builder, together with the address of your website. The code you copy then works on that website.

  • A Single License works on one website at a time. To move it, deactivate the old website under My Account, Licenses, click "Use another website or key" in the builder, activate the new one and copy the code again.
  • A Multi-Use License works on unlimited websites. You activate each one in the builder and copy its code.
  • Your site's built-in squarespace.com address always works, so you can install before your domain is connected.
  • Your website never contacts squarespell.com.

One payment

You pay once. There is no monthly fee, no limit on visitors or page views, and nothing switches off.

Who it is for

  • Wineries, breweries, distilleries and shops that sell alcohol
  • Vape, tobacco and CBD shops
  • Sites with content for adults only
  • Designers who build Squarespace sites for these businesses (the Multi-Use License covers unlimited websites)

One paste in your Header.

  1. Step 1: Activate

    Open the builder file. Enter your license key and your website address, then click Activate.

  2. Step 2: Set it up

    Pick a look, then set the question, the ages, what happens after the answer and the pages. The preview shows every change.

  3. Step 3: Copy

    Click Copy code.

  4. Step 4: Paste

    In Squarespace open Pages, Custom Code, Code Injection. Click into the Header box, go to the end of anything already there, start a new line, paste and click Save.

Code Injection needs the Core plan or higher. The PDF guide included with the plugin shows every step with screenshots.

What’s included and compatibility

What’s included

  • The Age Gate builder (one HTML file that runs in your browser), with four looks and a live preview
  • An illustrated PDF installation guide
  • Your license key
  • Support by email at info@squarespell.com

For wineries, breweries, distilleries and shops that sell alcohol, vape, tobacco and CBD shops, sites with content for adults only, and the designers who build their Squarespace sites.

Known limitations

  • Age Gate asks visitors their age and trusts the answer. It is not a regulated age verification method and does not check an ID. If the law where you sell needs a checked age, use an age verification service as well.
  • The country is a good guess from the visitor's time zone, not a check: a visitor on holiday counts as being where they are.
  • The answer is kept in the visitor's browser. Another browser, a private window or cleared site data asks again.
  • The gate is made with JavaScript. A visitor who has turned JavaScript off sees the page.
  • Code Injection needs the Core plan or higher.
  • Tested in Chromium (Chrome) on a computer and at phone widths. Not tested in Safari, in Firefox or on real phones.

Check compatibility

Squarespace version
7.1
Works with
Every page, or the pages you choose
How visitors answer
Yes or No, date of birth, birth year
Looks
Light card, Dark card, Full screen, Minimal
Languages
English, German, French, Spanish, Italian, Dutch, Portuguese, Swedish, every word editable
Installation
One paste in Code Injection, Header
Plugin version
1.0.0
Plan needed
Core or higher (Code Injection)
Coding knowledge
None
Browser support
Tested in Chromium (Chrome) on a computer and at phone widths
Dependencies
None
License
Single License: Single Website. Multi-Use License: Unlimited Websites.
Support
info@squarespell.com

Squarespace 7.0 templates are not supported.

Good to know before you buy.

Answers to common questions about how the plugin works.

How do I add age verification to a Squarespace site?

Set the gate up in the builder, click Copy code and paste it once into Code Injection, Header. It then shows on every page, or only on the pages you choose.

Can visitors enter their date of birth instead of clicking Yes?

Yes. Choose Date of birth for day, month and year in the visitor's usual order, or Birth year for one field. The date is checked in the browser and never kept.

Can the age be 21 in the United States and 18 elsewhere?

Yes. Set a minimum age and add the countries that need another one. The country is found from the visitor's time zone, so it is a good guess, not a check.

Does the page show for a moment before the gate?

No. The code runs in the Header, so the gate covers the page before it is painted.

Will it hurt my search rankings?

The gate covers the page and never sends visitors to another page, as Google suggests for age gates. With Let search engines read the page switched on, the Google and Bing crawlers skip the gate.

How long is the answer remembered?

As long as you set: 1 day, 30 days, 1 year, any number of days, or this visit only.

What happens when a visitor is under age?

They see your message with a Leave this site button, or go straight to a link you choose. You decide whether the gate stays closed for this visit, for a number of hours, or offers Try again.

Can I show it only on some pages?

Yes. Choose Only these or All except these and list the page addresses. End an address with * to include everything under it.

Does it match my site?

Yes. It takes your site's logo, fonts and colours, or the colours you pick. Four looks are ready to start from.

Does it work in other languages?

Yes. Eight languages are ready and every word can be changed. The gate speaks the language of each page.

Is this legal age verification?

It is an age notice that asks visitors and trusts the answer. It does not check an ID. Where the law needs a checked age, use an age verification service as well.

Which plan do I need?

Squarespace 7.1 on the Core plan or higher, for Code Injection.

Is this a subscription?

No. One payment: $25 for a Single License, $45 for a Multi-Use License. No monthly fee.

Installation & troubleshooting 6 fixes
The gate does not show.
Check that the code is in Code Injection, Header and saved, and that the page is opened as a visitor, not inside the Squarespace editor. If you already answered, add ?agegate=reset to the page address.
Works on the squarespace.com address but not on my domain.
The code is activated for another address. Activate your domain in the builder and paste the new code over the old one.
The gate shows on the wrong pages.
Check the page addresses under Where it shows: they are the part after your domain, and an address ending in * includes everything under it.
My logo does not show.
Choose A picture address under Logo and paste the address of your logo picture.
A visitor in another country got the wrong age.
The country comes from the time zone set on the visitor's device. A visitor travelling, or with another time zone set, gets the age of that time zone.
"Could not reach squarespell.com".
The builder needs the internet once to activate. Check the connection and click Activate again. Your website never contacts squarespell.com.

Customer reviews

No reviews yet. Share your experience.

Write a review
Your rating

Only people who bought this plugin can review it. No account needed.

Ready to ask their age first?

Age Gate: Add an Age Verification Popup to Your Squarespace Site · Multi-Use License

Get the plugin $45 , Multi-Use License