GSGeneral Spirit
Log inStart free

How to add an age gate to a Squarespace, Wix or Webflow alcohol site

General Spirit team · Last updated October 26, 20267 min read

Summary

Squarespace, Wix and Webflow each let you add site-wide code, but only Wix documents a built-in age disclaimer. This guide covers, platform by platform, where a gate script goes according to each platform's own help docs, which plans allow it, what checkout pages you can't reach, and when beer, wine and spirits brands need more than a gate.

Plenty of wineries, craft breweries and small distilleries run their sites on a website builder rather than a full ecommerce platform. Squarespace, Wix and Webflow all make good-looking brand sites, and all three let you add your own code. What they don't all give you is an age gate.

This guide takes each platform in turn: whether it has a built-in age feature, where a gate script goes according to its own help docs, and the limits to know about. It ends with what all three have in common and when a gate isn't enough. For the general case, see our complete guide to age gates for alcohol brands. If you're on WordPress instead, see how to add an age gate to WordPress or WooCommerce.

The pattern on all three

Every approach here comes down to the same idea. You add a gate, either something you build with the platform's own tools or a hosted script from a vendor, so that it loads on every page before the visitor uses the site. A hosted gate is usually one script tag pasted into the site-wide head code area. Your vendor tells you the exact tag; the platform's docs tell you where it goes.

Load it site-wide, not page by page, or you'll miss new pages. Make it an overlay rather than a redirect to an age page, so search engines can still reach your content. Google's interstitial guidance exempts legally required age gates, but redirects can still hide your pages. Our age gates and SEO guide explains why.

Squarespace

Built-in age gate: we couldn't find one in Squarespace's help docs.

Where code goes: Squarespace's guide to code injection says code in the Header field is injected into the <head> of every page, and code in the Footer field goes just before the closing </body> tag. There's also page-level injection for single pages. For a gate, the site-wide Header field is the usual place.

Plans: the same page says code injection is available on the Core, Plus, Advanced and some legacy plans. If you're on a plan without it, you can't add a script gate.

Checkout: Squarespace states that checkout pages don't support code. A gate on the storefront won't run there. What you can do at checkout is add a custom checkout form. Squarespace says it collects information for the whole order, can include required fields, and can be used to require customers to agree to your terms. Some brands use a required field there as an extra age statement. It's still the buyer's own word, not an ID check.

Wix

Built-in age feature: yes, of a kind. Wix's help center has a guide to adding an age disclaimer. It describes two ways: a popup or a landing page, both with a confirmation button and no other navigation. For the popup, it suggests showing it automatically on the first page a visitor sees, with no delay and the close X turned off.

One point to note. Wix says that by default popups don't appear on your mobile site unless you enable them in the mobile editor, because Google doesn't like intrusive popups on mobile. For an alcohol brand, a gate that's missing on mobile isn't much of a gate, so check this setting. Google's exemption for legally required age gates is the relevant part of its guidance.

Where code goes: for a hosted gate, Wix's guide to embedding custom code points to Settings > Custom Code in the site dashboard. You can add code to all pages or chosen pages, choose whether it loads once per visit or on each page, and place it in the Head, Body-start or Body-end. Wix says the site must be published and have a connected domain first.

For a gate, choose all pages and the Head. Think about "once per visit" carefully. The gate script itself usually remembers a visitor who has passed, so loading it on every page and letting it decide is often the safer choice. Follow your vendor's instructions.

Webflow

Built-in age gate: we couldn't find one in Webflow's help center.

Where code goes: Webflow's guide to custom code in head and body tags says you add site-wide code in Site settings > Custom code, in the Head code or Footer code sections, and save. Page settings also have their own custom code fields for single pages. The custom code sections support HTML, CSS and JavaScript, up to 50,000 characters each, and changes go live only when you publish.

Webflow notes that scripts before the closing body tag help page speed. A gate is the exception people usually make: it needs to load early so content isn't usable before the visitor answers, which points to the Head code section. Webflow also suggests the async or defer attributes for external scripts in the head. Use whatever your gate vendor recommends.

Plans: Webflow says custom code is available with a Core, Growth, Agency or Freelancer Workspace, or with an active Site plan.

Ecommerce: if you sell through Webflow Ecommerce, Webflow notes that scripts you add are outside its control and that you are responsible for any card-security obligations they raise. Keep that in mind with any third-party script, gate or otherwise.

Side by side

SquarespaceWixWebflow
Built-in age featureNone foundAge disclaimer popup or landing pageNone found
Site-wide code locationCode injection, HeaderSettings > Custom Code, HeadSite settings > Custom code, Head code
Plan limitsCore, Plus, Advanced, some legacyPublished site with connected domainPaid Workspace or active Site plan
Code on checkoutNot supportedNot covered hereNot covered here

Where General Spirit fits

General Spirit is what we build. It's a JavaScript age gate plus a machine-readable age policy, and it installs with a script tag, with no proxy or DNS changes. On these builders that means pasting it into the site-wide head code area described above.

Visitors can enter a date of birth, answer yes/no, or be remembered. Legal ages for every country are built in, which matters if your wine club ships to the UK at 18 and the US at 21. You choose whether AI agents are allowed, must make an agent attestation, or are blocked, and the policy is published at generalspirit.com/policy/<brand>.json. Search crawlers are always allowed. It does not check ID.

A built-in popup like Wix's is free and fine for many brand sites. A hosted gate is worth it when you need per-country ages, consistent behaviour across sites, or a policy that AI shopping agents can read. See why human age gates don't stop AI agents.

When a gate isn't enough

A gate asks people their age. It's age affirmation, not an ID check. Some markets expect more from online sellers. Denmark requires webshops to check ID (Denmark), the Netherlands requires an age check during ordering and at delivery (Netherlands), and Switzerland says a checkbox or date of birth isn't enough (Switzerland). South Korea and Abu Dhabi have their own rules for online sales (South Korea, UAE). In those markets, the gate is the first step and an ID check is needed too. Singapore is different again: online sellers must warn buyers that underage buying is an offence and state the penalty, and the police's examples of reasonable steps are a buyer declaration plus that warning, not an ID check (Singapore). Taiwan and Thailand don't allow online sales to consumers at all (Taiwan, Thailand).

Website builders give you limited control over checkout, so if you sell into those markets, check whether your platform's checkout can support an ID check provider before you commit. Elsewhere, a gate plus an age check at delivery is often the usual setup.

This article is general information, not legal advice. Check your obligations with counsel in each market you sell into.

FAQ

Does Squarespace have an age gate?

We couldn't find a built-in age gate in Squarespace's help docs. Sites add one through code injection, which Squarespace says is available on Core, Plus, Advanced and some legacy plans. Squarespace also says checkout pages don't support code.

How do I add an age gate on Wix?

Wix's help center describes an age disclaimer built as a popup or a landing page with a confirmation button. You can also add a gate script under Settings > Custom Code, which Wix says needs a published site with a connected domain.

Does Webflow have a built-in age gate?

We couldn't find one in Webflow's help center. You add a gate script in Site settings > Custom code, which Webflow says is available on paid Workspace plans or with an active Site plan.

Is a website builder age gate enough to sell alcohol online?

Not everywhere. A gate asks visitors their age; it doesn't check ID. Denmark, the Netherlands, Switzerland, South Korea and Abu Dhabi expect more from online alcohol sellers, so there a gate is only the first step. Singapore asks for an offence warning and penalty notice rather than an ID check.

Want people and agents covered on your site?Set up your gate
General Spirit team · Last updated October 26, 2026

Related

GSGeneral Spirit

How to add an age gate to a Squarespace, Wix or Webflow alcohol site

General Spirit team · Last updated October 26, 20267 min read

Summary

Squarespace, Wix and Webflow each let you add site-wide code, but only Wix documents a built-in age disclaimer. This guide covers, platform by platform, where a gate script goes according to each platform's own help docs, which plans allow it, what checkout pages you can't reach, and when beer, wine and spirits brands need more than a gate.

On this page

Plenty of wineries, craft breweries and small distilleries run their sites on a website builder rather than a full ecommerce platform. Squarespace, Wix and Webflow all make good-looking brand sites, and all three let you add your own code. What they don't all give you is an age gate.

This guide takes each platform in turn: whether it has a built-in age feature, where a gate script goes according to its own help docs, and the limits to know about. It ends with what all three have in common and when a gate isn't enough. For the general case, see our complete guide to age gates for alcohol brands. If you're on WordPress instead, see how to add an age gate to WordPress or WooCommerce.

The pattern on all three

Every approach here comes down to the same idea. You add a gate, either something you build with the platform's own tools or a hosted script from a vendor, so that it loads on every page before the visitor uses the site. A hosted gate is usually one script tag pasted into the site-wide head code area. Your vendor tells you the exact tag; the platform's docs tell you where it goes.

Load it site-wide, not page by page, or you'll miss new pages. Make it an overlay rather than a redirect to an age page, so search engines can still reach your content. Google's interstitial guidance exempts legally required age gates, but redirects can still hide your pages. Our age gates and SEO guide explains why.

Squarespace

Built-in age gate: we couldn't find one in Squarespace's help docs.

Where code goes: Squarespace's guide to code injection says code in the Header field is injected into the <head> of every page, and code in the Footer field goes just before the closing </body> tag. There's also page-level injection for single pages. For a gate, the site-wide Header field is the usual place.

Plans: the same page says code injection is available on the Core, Plus, Advanced and some legacy plans. If you're on a plan without it, you can't add a script gate.

Checkout: Squarespace states that checkout pages don't support code. A gate on the storefront won't run there. What you can do at checkout is add a custom checkout form. Squarespace says it collects information for the whole order, can include required fields, and can be used to require customers to agree to your terms. Some brands use a required field there as an extra age statement. It's still the buyer's own word, not an ID check.

Wix

Built-in age feature: yes, of a kind. Wix's help center has a guide to adding an age disclaimer. It describes two ways: a popup or a landing page, both with a confirmation button and no other navigation. For the popup, it suggests showing it automatically on the first page a visitor sees, with no delay and the close X turned off.

One point to note. Wix says that by default popups don't appear on your mobile site unless you enable them in the mobile editor, because Google doesn't like intrusive popups on mobile. For an alcohol brand, a gate that's missing on mobile isn't much of a gate, so check this setting. Google's exemption for legally required age gates is the relevant part of its guidance.

Where code goes: for a hosted gate, Wix's guide to embedding custom code points to Settings > Custom Code in the site dashboard. You can add code to all pages or chosen pages, choose whether it loads once per visit or on each page, and place it in the Head, Body-start or Body-end. Wix says the site must be published and have a connected domain first.

For a gate, choose all pages and the Head. Think about "once per visit" carefully. The gate script itself usually remembers a visitor who has passed, so loading it on every page and letting it decide is often the safer choice. Follow your vendor's instructions.

Webflow

Built-in age gate: we couldn't find one in Webflow's help center.

Where code goes: Webflow's guide to custom code in head and body tags says you add site-wide code in Site settings > Custom code, in the Head code or Footer code sections, and save. Page settings also have their own custom code fields for single pages. The custom code sections support HTML, CSS and JavaScript, up to 50,000 characters each, and changes go live only when you publish.

Webflow notes that scripts before the closing body tag help page speed. A gate is the exception people usually make: it needs to load early so content isn't usable before the visitor answers, which points to the Head code section. Webflow also suggests the async or defer attributes for external scripts in the head. Use whatever your gate vendor recommends.

Plans: Webflow says custom code is available with a Core, Growth, Agency or Freelancer Workspace, or with an active Site plan.

Ecommerce: if you sell through Webflow Ecommerce, Webflow notes that scripts you add are outside its control and that you are responsible for any card-security obligations they raise. Keep that in mind with any third-party script, gate or otherwise.

Side by side

SquarespaceWixWebflow
Built-in age featureNone foundAge disclaimer popup or landing pageNone found
Site-wide code locationCode injection, HeaderSettings > Custom Code, HeadSite settings > Custom code, Head code
Plan limitsCore, Plus, Advanced, some legacyPublished site with connected domainPaid Workspace or active Site plan
Code on checkoutNot supportedNot covered hereNot covered here
Scroll sideways to see the full table.

Where General Spirit fits

General Spirit is what we build. It's a JavaScript age gate plus a machine-readable age policy, and it installs with a script tag, with no proxy or DNS changes. On these builders that means pasting it into the site-wide head code area described above.

Visitors can enter a date of birth, answer yes/no, or be remembered. Legal ages for every country are built in, which matters if your wine club ships to the UK at 18 and the US at 21. You choose whether AI agents are allowed, must make an agent attestation, or are blocked, and the policy is published at generalspirit.com/policy/<brand>.json. Search crawlers are always allowed. It does not check ID.

A built-in popup like Wix's is free and fine for many brand sites. A hosted gate is worth it when you need per-country ages, consistent behaviour across sites, or a policy that AI shopping agents can read. See why human age gates don't stop AI agents.

When a gate isn't enough

A gate asks people their age. It's age affirmation, not an ID check. Some markets expect more from online sellers. Denmark requires webshops to check ID (Denmark), the Netherlands requires an age check during ordering and at delivery (Netherlands), and Switzerland says a checkbox or date of birth isn't enough (Switzerland). South Korea and Abu Dhabi have their own rules for online sales (South Korea, UAE). In those markets, the gate is the first step and an ID check is needed too. Singapore is different again: online sellers must warn buyers that underage buying is an offence and state the penalty, and the police's examples of reasonable steps are a buyer declaration plus that warning, not an ID check (Singapore). Taiwan and Thailand don't allow online sales to consumers at all (Taiwan, Thailand).

Website builders give you limited control over checkout, so if you sell into those markets, check whether your platform's checkout can support an ID check provider before you commit. Elsewhere, a gate plus an age check at delivery is often the usual setup.

This article is general information, not legal advice. Check your obligations with counsel in each market you sell into.

FAQ

Does Squarespace have an age gate?

We couldn't find a built-in age gate in Squarespace's help docs. Sites add one through code injection, which Squarespace says is available on Core, Plus, Advanced and some legacy plans. Squarespace also says checkout pages don't support code.

How do I add an age gate on Wix?

Wix's help center describes an age disclaimer built as a popup or a landing page with a confirmation button. You can also add a gate script under Settings > Custom Code, which Wix says needs a published site with a connected domain.

Does Webflow have a built-in age gate?

We couldn't find one in Webflow's help center. You add a gate script in Site settings > Custom code, which Webflow says is available on paid Workspace plans or with an active Site plan.

Is a website builder age gate enough to sell alcohol online?

Not everywhere. A gate asks visitors their age; it doesn't check ID. Denmark, the Netherlands, Switzerland, South Korea and Abu Dhabi expect more from online alcohol sellers, so there a gate is only the first step. Singapore asks for an offence warning and penalty notice rather than an ID check.

Want people and agents covered on your site?Set up your gate
General Spirit team · Last updated October 26, 2026

Related

Age gates for alcohol brands: the complete guideAge gates and SEO: how to gate without losing rankings