Shopify Age Verification: How to Add an 18+ or 21+ Check
Optixfusion Team 8 min read
If you sell alcohol, vapes, tobacco, CBD or other age-restricted products on Shopify, you need to stop underage visitors from buying. Shopify doesn't add an age check to your store by default, so it's up to you to set one up.
This guide explains the different levels of age verification, how to add each one to a Shopify store, and the mistakes that can hurt your sales or your Google rankings.
This article is general information, not legal advice. Age limits and verification rules differ by country, state and product. Check what your licence and local laws require.
What age do you need to check?
The minimum age depends on where your customers are and what you sell. A few examples for alcohol:
- United States: 21 in every state
- United Kingdom, Australia and most of the EU: 18, although some EU countries allow beer and wine from 16
- Canada: 18 or 19, depending on the province
- India: between 18 and 25, depending on the state
If you sell to several regions, set the check to the highest age that applies, or use an app that changes the age by location.
The four levels of age verification
Age verification isn't one feature. It's a set of layers, from a simple pop-up to a check at the door.
| Level | What it does | How strong it is |
|---|---|---|
| 1. Age gate pop-up | Asks visitors to confirm their age before they browse | Weak: anyone can click "Yes" |
| 2. Date of birth at cart or checkout | Asks for a birth date before the order is placed | Medium: creates a record on each order |
| 3. ID verification | Checks the buyer's identity against an ID document or database | Strong |
| 4. ID check on delivery | The courier checks ID and gives the order only to an adult | Strong, and often required by law |
Most alcohol stores need at least levels 1 and 2. Many licences also require level 4 for deliveries. Higher-risk products and stricter markets may need level 3.
Level 1: Add an age gate pop-up
An age gate is the pop-up that asks "Are you over 18?" or for a date of birth before the visitor can see the store.
Option A: Use your theme's built-in age verifier
Several themes on the Shopify Theme Store include one, including Loka, Area, Vincent and Whisk. If your theme has it:
- In Shopify admin, go to Online Store > Themes and click Customize.
- Look for an Age verifier setting or section. Its location depends on the theme, so check the theme's documentation.
- Turn it on, set the minimum age and write a short message.
- Add an exit link for visitors who are under age.
- Save and test it in a private browser window.
A built-in age gate is usually the fastest option, because it doesn't add another app script to every page. See our list of the best Shopify themes for liquor and wine stores for themes that include one.
Option B: Install an age verification app
If your theme has no age verifier, the Shopify App Store has many age verification apps. When you compare them, check that the app:
- Lets you choose between a yes/no button and a date-of-birth entry
- Lets you set the minimum age, and ideally different ages by country or region
- Can show the gate on the whole store or only on certain products or collections
- Remembers the visitor's answer so they aren't asked on every page
- Matches your brand (logo, colours, background image)
- Loads quickly and doesn't block Google from seeing your pages
Age gate best practices
- Show it as an overlay. The pop-up should sit on top of the page, with the page content still in the HTML. Redirecting every visitor to a separate age page can stop Google from indexing your products.
- Remember the answer for the session or a set number of days.
- Keep the text short and clear: "You must be 18 or older to enter this site."
- Link to your terms and responsible drinking information.
- Test on mobile. Make sure the buttons are easy to tap and nothing is cut off.
Level 2: Ask for a date of birth before the order is placed
A pop-up is easy to click past. Asking for a date of birth before the order is placed is stronger, and it gives you a record on every order.
On the cart page (any Shopify plan)
You can add a required date-of-birth field to the cart page with a cart attribute. The answer is saved with the order and shows in Shopify admin.
Add a field like this inside the cart form in your theme's cart template:
<label for="dob">Date of birth</label>
<input id="dob" type="date" name="attributes[Date of birth]" required>
<label>
<input type="checkbox" name="attributes[Age confirmed]" value="Yes" required>
I confirm I am 18 or older
</label>
Keep in mind that shoppers who use express checkout buttons such as Shop Pay or Apple Pay from the product page can skip the cart page. If the date of birth is required, consider hiding express buttons on product pages or using an app that adds the check at checkout.
At checkout
On Shopify Plus, a checkout UI extension can add a date-of-birth field or confirmation directly to the information step of checkout and block underage orders. On other plans, the information, shipping and payment steps can't be changed this way, so use the cart page method or an app that handles verification before or after checkout.
Check orders before you fulfil them
Whatever method you use, check the date of birth on each order before you ship. Cancel and refund any order that doesn't meet the minimum age.
Level 3: Verify the buyer's identity
For stricter markets or higher-risk products, ID verification apps check the buyer's identity against an ID document or official data sources. The customer may be asked to upload a photo of their ID or take a selfie.
This is the most reliable online method, but it adds friction, and most providers charge per check. Many stores use it only when the basic check fails, for first orders, or for high-value orders.
Level 4: Check ID on delivery
For alcohol, many licences require the person who receives the order to be an adult, checked at the door.
- Use a courier service that offers age-verified or ID-checked delivery.
- For your own local delivery, train drivers to check ID and return the order if the customer can't show it.
- Add a clear note at checkout: "ID will be checked on delivery. Orders can't be left unattended."
- For click-and-collect, check ID at the counter.
Common mistakes to avoid
- Relying on the pop-up alone. It's a first step, not proof of age.
- Redirecting to a separate age page. It can hide your store from Google. Read our liquor store SEO guide for how to keep age-gated pages visible in search.
- Asking on every page. Remember the visitor's answer.
- Forgetting express checkout. Buyers can skip the cart page with Shop Pay or Apple Pay buttons.
- Using one age for every market. Set the age for each country or region you sell to.
- Never checking the orders. A date of birth you don't check doesn't protect you.
FAQ
Does Shopify have built-in age verification?
Not as a store setting. You add it through your theme, if it includes an age verifier, or with an age verification app from the Shopify App Store.
Is an age verification pop-up enough to sell alcohol online?
Usually not. A pop-up shows you asked, but anyone can click through. Most alcohol licences also expect a date-of-birth check before purchase and an ID check when the order is delivered or collected.
Can I add a date-of-birth field to Shopify checkout?
On Shopify Plus, yes, with a checkout UI extension. On other plans you can add a required date-of-birth field to the cart page, or use an app that verifies age before or after checkout.
Does an age gate hurt SEO?
Not if it's built as an overlay on top of the page content. It can hurt SEO if it redirects visitors to a separate page or hides the content in a way Google can't render.
What age should my Shopify age gate use?
Use the legal minimum age for the product in each place you sell to, for example 21 in the US and 18 in the UK and Australia. If you sell to many regions, use the highest age or an app that sets it by location.
Need help setting up age verification?
We build and customise Shopify stores for liquor, wine, vape and other age-restricted brands, from age gates and date-of-birth checks to local delivery rules. Our Shopify development team can set it up for you. Tell us about your store and we'll send you a free quote within one working day.
Liquor store development
Build your liquor store with POS sync
$999one-time
- Shopify store build
- POS stock sync
- Age check and local delivery