Selling alcohol, vapes, CBD or knives online? Then Shopify age verification is part of running your store, not an extra. Shopify has no built-in age check, and the law where your customers live decides how strong your check must be. A simple popup is fine for some stores. Others need a real ID check at checkout and again at the door.
In this guide I explain Shopify’s own rules, give you a free age verification popup tested in Dawn and Horizon, and show when you need more. I have set up age gates on many client stores, and this is the order I work in. This is general information, not legal advice. Rules change, so everything below is as of November 2026.
Here is what you will learn:
- What Shopify allows for age-restricted products, and what it doesn’t.
- The three layers of age checks, from a popup to an ID check at the door.
- How to add a free, accessible age verification popup in about ten minutes.
- Which apps check real ID, and what they cost.
- The main rules in the US, the UK and the EU.
Does Shopify have built-in age verification?
No. There is no built-in Shopify age verification for your online store. You add a check with theme code or an app. What Shopify does have are rules about what you sell and how you get paid.
The main rule in Shopify’s Acceptable Use Policy is short: “You can’t use Shopify to do anything that’s illegal where you do business.” So if your market requires age checks, skipping them also breaks Shopify’s rules.
Payments are the next hurdle for age-restricted products. Shopify Payments has a short list of prohibited products. It names “cannabis and related products”, “tobacco and related products” and “weapons”. Shopify also says Shopify Payments doesn’t support hemp, CBD and THC products. Alcohol is not on that short list, but every country has a longer one. Check yours before you launch.
Sales channels add their own rules. The
Shop app doesn’t allow “age-restricted products such as alcohol, tobacco, or gambling”. Shopify Catalog leaves out alcohol, tobacco and vaping products. Managed Markets blocks alcohol, restricts tobacco, e-cigarettes and CBD, and limits knives in some countries.
| Product | Shopify Payments | Shop app | Managed Markets |
|---|---|---|---|
| Alcohol | Check country list | Not allowed | Prohibited |
| Vapes, tobacco | Tobacco listed | Not allowed | Restricted |
| CBD, hemp | Not supported | Cannabis not allowed | Restricted |
| Knives | “Weapons” listed | Weapons not allowed | Some countries |
The 3 layers of Shopify age verification
Shopify age verification works in layers. Each layer proves more, and each one adds cost or friction. Most stores with age-restricted products need two or three.
| Layer | What it proves | Cost | Good for |
|---|---|---|---|
| 1. Popup | Nothing, the visitor says yes | Free | Mature content, a first step |
| 2. ID check | Age matched to ID or data | App fee | Alcohol, vapes, UK knives |
| 3. At delivery | ID seen at the door | Carrier fee | US vapes, UK knives, alcohol |

Layer 1: add a free Shopify age verification popup
An age verification popup asks visitors to confirm their age before they browse. It sets the tone of your store, but it proves nothing, because anyone can click yes. Treat it as a first step.
Here is the code I use. It needs no app, and I tested it with Dawn and Horizon styles at 360, 390 and 1280 pixels wide.
- It is accessible. It uses the browser’s built-in dialog, so focus stays inside, screen readers read the question, and the buttons are easy to tap.
- It can’t be skipped. The Escape key doesn’t close it.
- It doesn’t track anyone. It loads nothing from other sites and sends no data. It saves one small “yes” note in the browser, not a cookie, so the popup doesn’t return on every page.
- It hides in the theme editor, so you can still edit your theme.
- It is search friendly. It covers the page instead of sending visitors to another page.
Google’s guidance for required age gates recommends exactly that.
Step 1: Add a Custom Liquid section to the footer
Put the code in the footer, because the footer shows on every page.
- Go to Online Store, then Themes, and click Customize.
- In the left sidebar, find the Footer area and click Add section.
- Choose Custom Liquid.
- In Dawn, set Top and Bottom padding to 0. Dawn starts at 40 px and 52 px, which leaves an empty band in your footer. In Horizon, the padding already starts at 0.

Step 2: Paste the code
Paste this age verification popup code into the Liquid code box and click Save. To ask for 21 instead of 18, change the 18 in the first line.
{% assign min_age = 18 %}
{% unless request.design_mode %}
<dialog id="age-gate" class="age-gate" aria-labelledby="age-gate-title" aria-describedby="age-gate-text">
<h2 id="age-gate-title" class="age-gate__title">Are you {{ min_age }} or older?</h2>
<p id="age-gate-text" class="age-gate__text">You must be {{ min_age }} or older to enter this store.</p>
<div class="age-gate__buttons">
<button type="button" class="age-gate__btn age-gate__btn--yes" data-age-yes autofocus>Yes, I am {{ min_age }}+</button>
<button type="button" class="age-gate__btn" data-age-no>No</button>
</div>
<p class="age-gate__note" role="alert" hidden>Sorry, you can't enter this store.</p>
</dialog>
<style>
html.age-gate-open { overflow: hidden; }
.age-gate { box-sizing: border-box; width: calc(100% - 32px); max-width: 420px; margin: auto; padding: 28px 24px; border: 0; border-radius: 12px; background: #fff; color: #111; text-align: center; font-size: 16px; line-height: 1.5; }
.age-gate::backdrop { background: rgba(0, 0, 0, 0.9); }
.age-gate .age-gate__title { margin: 0 0 8px; font-size: 22px; line-height: 1.3; color: #111; }
.age-gate .age-gate__text, .age-gate .age-gate__note { margin: 0 0 20px; font-size: 16px; color: #333; }
.age-gate .age-gate__note { margin: 16px 0 0; color: #b00020; font-weight: 600; }
.age-gate .age-gate__buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.age-gate .age-gate__btn { flex: 1 1 140px; min-height: 48px; margin: 0; padding: 12px 16px; border: 2px solid #111; border-radius: 8px; background: #fff; color: #111; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.age-gate .age-gate__btn--yes { background: #111; color: #fff; }
.age-gate .age-gate__btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
</style>
<script>
(function () {
var gate = document.getElementById('age-gate');
if (!gate || typeof gate.showModal !== 'function') return;
var key = 'age_gate_ok';
try { if (localStorage.getItem(key) === '1') return; } catch (e) {}
gate.addEventListener('cancel', function (event) { event.preventDefault(); });
gate.querySelector('[data-age-yes]').addEventListener('click', function () {
try { localStorage.setItem(key, '1'); } catch (e) {}
document.documentElement.classList.remove('age-gate-open');
gate.close();
});
gate.querySelector('[data-age-no]').addEventListener('click', function () {
gate.querySelector('.age-gate__note').hidden = false;
});
document.documentElement.classList.add('age-gate-open');
gate.showModal();
})();
</script>
{% endunless %}Step 3: Test it on your phone
- Open your store in a private window on your phone. The age verification popup should appear.
- Tap No. A short message appears and the popup stays.
- Tap Yes. The popup closes. Reload the page, and it should not return.
- On a computer, press Tab. Focus should move only between the two buttons.
Want to see it again? Open a new private window. The browser remembers the answer, so a normal window won’t show it twice.

Using the Shopify cookie banner too? Visitors answer the age question first, then the banner, because the popup blocks everything behind it. My Shopify cookie banner guide shows how to test the banner itself.
Layer 2: real ID checks with a Shopify age verification app
For alcohol, vapes and UK knife sales, a click is not a check. You need an app that compares the buyer’s details with ID documents or identity data.
One limit matters here. Apps can add blocks to the information, shipping and payment steps of checkout only on Shopify Plus. On other plans, apps check age before checkout, for example in the cart, or after the order, holding it until the buyer passes.
These apps do real age checks. Prices are from the Shopify App Store on November 26, 2026:
Yoti Age Verification is free to install. It offers facial age estimation, a digital ID and ID document checks, for the whole store or only at checkout. Yoti’s own guide says its checkout extension needs Shopify Plus.
AgeChecker.Net costs $25 a month plus $0.50 per accepted check. It matches checkout details against identity data.
Token of Trust starts at $25 a month plus 85 cents per order. It uses government ID and database checks before, during or after checkout.
Real ID starts at $34.99 a month with five ID checks included. It can ask for ID before, during or after checkout.
If an age verification popup is all you need, popup apps are cheaper.
Blockify Age Verification 18+ has a free plan and a 4.9 rating from 310 reviews.
| App | Check type | Price (Nov 2026) |
|---|---|---|
| Yoti | Face, digital ID, document | Free to install |
| AgeChecker.Net | Identity data | $25/mo + $0.50 each |
| Token of Trust | ID + database | $25/mo + 85¢ an order |
| Real ID | ID document + selfie | From $34.99/mo |
| Blockify | Popup only | Free plan |
I haven’t tested every one of these on a live store, so try them on a development store first. Most let you tag the products that need a check. If you hold orders for review, my guide to a Shopify high-risk order shows how to handle the waiting order.
Layer 3: check age at delivery
The last layer of Shopify age verification happens at the door. For some products, the law also cares who receives the parcel.
In the US
USPS can’t mail alcohol or vapes to your customers.
UPS labels bought in Shopify offer Signature required only. Shopify notes: “Adult signature is no longer available.” UPS also won’t ship vape products within, to or from the US.
FedEx labels bought in Shopify offer Adult signature required, where the signer must be over 21. It costs $8.65 for FedEx Home Delivery and FedEx Ground. But Shopify’s FedEx page says you can’t ship alcohol, tobacco or vape products with these labels.
So US alcohol and vape sellers need their own carrier contract that allows these products and checks ID at the door.
In the UK
Royal Mail offers Age Verification on its Tracked and Special Delivery Guaranteed services, bought online. The driver records the year of birth and follows Challenge 25: anyone who looks under 25 must show a passport or driving licence. Royal Mail lists knives and bladed products as items that need this check, and alcohol, vapes and tobacco as items where the sender can choose it. My Shopify Royal Mail guide covers the shipping setup.
Age-restricted products: the rules in the US, UK and EU
Rules for age-restricted products follow your customer’s location, not only yours. Here is what the official sources say, as of November 2026.
United States
- Alcohol: state law rules alcohol, and it varies a lot. Shopify’s help page on selling alcohol products says you need the right licenses and “effective age verification practices” so people under 21 can’t buy or receive alcohol.
- Vapes: since December 20, 2019, the federal minimum age for all tobacco products, including e-cigarettes, is 21. Under the PACT Act, online vape sellers must register with the ATF and each state they ship to. They must check each buyer’s name, birth date and address in a commercial database. The carrier must get an adult signature and see photo ID.
- CBD: Shopify asks US hemp sellers to confirm their products have no more than 0.3% THC and follow state law. Shopify Payments doesn’t support these sales.
United Kingdom
- Alcohol: the minimum age is 18, under the Licensing Act 2003 in England and Wales. Shopify points UK sellers to the PAS 1296:2018 code for online age checks.
- Vapes and nicotine: since October 29, 2026, it is an offence to sell any vaping or nicotine product to anyone under 18, online too. From January 1, 2027, you can’t sell tobacco to anyone born on or after January 1, 2009.
- Knives: under the Offensive Weapons Act 2019, online sellers protect themselves with an age check likely to stop under-18s, a parcel marked as holding a blade, and a handover only to an adult. The Crime and Policing Act 2026 adds a stricter two-step check: photo ID and a photo of the buyer at the sale, then a courier ID check and handover only to the buyer. legislation.gov.uk still lists these parts as not yet in force, so plan for them now.
European Union
- Alcohol: there is no single EU age. Each country sets its own.
- Tobacco and e-cigarettes: under the EU Tobacco Products Directive, a country may ban cross-border online sales. Where they are allowed, the seller must register in both countries and run an age verification system that checks age at the time of sale.
Selling across Europe? My Shopify Markets Europe guide helps you decide which countries to open, and US sellers should also read my Shopify CCPA guide before they collect ID data.

Which Shopify age verification should you use?
Match your Shopify age verification to your riskiest product, not your average one.
- Mature designs or content with no legal age: the free popup is enough.
- Alcohol: the popup, an ID check app, and an adult signature or Royal Mail Age Verification at delivery.
- Vapes in the US: an app with database checks, plus a PACT Act delivery service. A popup alone falls far short.
- Vapes in the UK: an ID check app, plus a delivery check for extra safety.
- Knives in the UK: an ID check at the sale, marked parcels, and Royal Mail Age Verification.
- CBD: check your state or country rules first, then a third-party payment provider.
Common age check mistakes
Most problems come from trusting a popup too much, or from shipping choices.
- Relying on an age verification popup for age-restricted products. It is a good start, not a real check.
- Sending every visitor to one “age” page. Google then sees only that page. Cover the page instead, like the code above does.
- Buying the wrong label. A carrier that bans your product won’t deliver it, even with a signature.
- Forgetting your policies. State your minimum age in your terms and shipping policy. My free Shopify policy generator gives you a starting point.
Related guides
- Shopify newsletter popup: two free ways with proper consent.
- Shopify cancel order vs refund: which one to use, partial refunds and fees.
- Shopify store hacked?: what to do first, plus 2-step login and safe staff access.
Frequently asked questions
Does Shopify have built-in age verification?
No. Shopify has no built-in age gate or ID check. You add a popup with theme code or an app, and real ID checks with an app.
How do I add a Shopify age verification popup for free?
Add a Custom Liquid section to your footer in the theme editor, paste the popup code from this guide, set the padding to 0 in Dawn, and save. It works in Dawn and Horizon.
Can I add Shopify age verification at checkout?
On Shopify Plus, apps can add an age check inside the checkout steps. On other plans, apps check age before checkout or hold the order after it until the buyer passes.
Can you sell alcohol on Shopify?
Yes, if it is legal where you and your customers are, and you have the right licenses. You need effective age checks, and you may need a payment provider other than Shopify Payments.
Can you sell vapes on Shopify?
Shopify’s rules allow legal sales, but Shopify Payments lists tobacco and related products as prohibited. In the US, the PACT Act also requires age checks at purchase and at delivery.
Can you sell knives on Shopify?
Yes, where it is legal. In the UK, sellers need an age check, parcels marked as holding a blade, and a handover only to an adult.
Good Shopify age verification protects your shoppers and your payment and shipping accounts. For more free help, see my free Shopify tools. If you want someone to set up your age gate, apps and checkout rules, I do this in my Shopify store management service. Message me on WhatsApp and I will take a look.




