Age verification. Asked once, asked well.

A store that sells wine, spirits, vapes or other age-restricted products usually asks visitors their age before it shows them anything else, and always before it asks for an email. This guide covers which rules point to an age gate, how to choose between a date of birth and a yes/no, whether to gate the whole store or only the signup, and how to test it. It also covers what an age gate in the browser cannot do.

By the numbers

Vendor figures are averages across many stores, not controlled tests. Use them to decide what to test first.

What an age gate does, and what it does not

An age gate asks a visitor to confirm their age before they see the store or the signup form. It does not prove anything: a visitor can type any date. Researchers who tested the age gates of the top 25 alcohol brands among American adolescents found that most let a refused visitor simply try again, and called them “weak, at best”. Treat the gate as a clear statement of who the store is for, and as the step your industry code or regulator expects before marketing. Checks that do establish age, such as ID at checkout or a signature on delivery, are separate tools and may also be required.

Know which rules apply to your products

Rules depend on the product and where you sell, so get legal review; this is not legal advice. The Distilled Spirits Council’s guidance asks spirits sites to collect a full date of birth before direct interaction, to collect information only from people of legal purchase age, and to send under-age visitors to a responsible drinking site. For vapes, the federal minimum age has been 21 since December 20, 2019. The PACT Act, which covers e-cigarettes, requires delivery sellers to check the buyer’s name, birth date and address against a commercial database, and an adult’s signature and photo ID at delivery. A popup meets none of those checks. For hemp and CBD, check the rules in each state you ship to.

Choose a date of birth or a yes/no

A yes/no button (“Are you 21 or older?”) is one tap. A date of birth takes longer but makes the visitor state a fact rather than agree to a sentence. In the alcohol study, 91% of brand sites asked for a date of birth and 9% used a yes/no box. The Distilled Spirits Council says asking whether someone is of legal age, or asking for a birth year alone, is not enough under its code. Veya’s age gate offers both: date of birth is the default, and a yes/no is there for stores whose rules allow it. Set the minimum age from 16 to 25: 21 in the US, 18 in most other countries.

Gate the whole store or only the signup

There are two places a gate can sit. Before the whole store, it appears on every page before anything else: the page behind is blurred and does not scroll until the visitor answers. Before the signup, the store opens freely and the gate appears only when the signup popup would open; an under-age answer means no popup and the visitor carries on browsing. Spirits, beer and vape brands usually gate the whole store, because the product pages are the marketing. A store that sells mostly general products with a few restricted ones may only need the gate in front of the offer and the email capture. Veya supports both, set in Settings, Age gate.

Make a refusal stick

In the alcohol study, only one in five sites blocked further attempts after an under-age date. On most, a visitor could keep changing the year until it worked. In Veya, an under-age answer holds for the rest of the visit: reloading the page shows the refusal message again rather than the question. Write the message in your own words, up to 300 characters, and give under-age visitors somewhere to go. By default the Leave button points to Responsibility.org, the site the Distilled Spirits Council suggests; you can set your own https page or remove the button. A stricter gate, such as a higher age or a switch from popup to whole store, asks again.

Remember a pass, with consent

Asking a returning customer their age on every visit is tiresome. A pass can be remembered on that browser for a set number of days, from 0 (this visit only) to 365. In Veya, a pass always lasts for the visit, and is kept for the longer period only when the visitor allows preferences storage under Shopify’s customer privacy settings. Without that consent, the visitor is asked again next time. Choose the period with your compliance advisor: a short one asks more often but suits a shared device; a long one is kinder to regular customers. Changing the gate to a stricter one asks everyone again.

Don’t keep the date of birth

If the only purpose of the date is to check an age, there is no need to store it. The GDPR’s data minimization principle, Article 5(1)(c), asks that personal data be limited to what is necessary for its purpose. Veya checks the date of birth in the visitor’s browser, to the day, and never stores or sends it. A signup records only how it passed, such as “birthdate:21”. Klaviyo receives veya_age_verified, veya_age_minimum and veya_age_method on the profile and the signup event. A signup from a gated store that has not passed the gate is refused by the API.

Make it look like your store

A plain white card over a blurred page works, but a gate is the first thing a visitor sees. Veya’s gate can be a card over the store or a full page of its own, with your logo, a background photo on the full page, your colors, your own question of up to 200 characters, your own button words of up to 40 characters, and rounded or square corners. Nothing checks the contrast of the colors you choose, so read the question on a phone in daylight, especially over a photo. The gate keeps keyboard focus inside itself. Escape closes a gate in front of a popup, but not one in front of the whole store.

Collecting birthdays is a separate question

Many alcohol brands want birthdays for a yearly email, and it is tempting to reuse the age gate’s date. Keep them apart. The gate’s answer is a check on everyone who visits; a birthday for marketing is something a subscriber chooses to give you, with consent. In Veya, the gate’s date is never kept, so it cannot feed a birthday flow. Ask for a birthday in the signup form instead, as a date question with its own minimum age. A visitor who tapped Yes at the gate and then enters a 19-year-old’s birthday in a 21+ form is not signed up, and nothing of the refused signup is kept.

Test both answers before launch

Open the store in a private window on a phone and answer as an adult. Check that the popup and the store behave as expected, then sign up with an address you control and look for veya_age_verified on the Klaviyo profile. Open a new private window and answer under age: confirm the message, the Leave button and that a reload does not offer the question again. Try a birthday of 29 February, which comes of age on 1 March in a common year. On a gate in front of the popup, press Escape and confirm no popup appears. Private previews skip the gate, so test the live store. Veya’s form funnel counts passed, refused and left answers.

Brief Veya

Send your storefront URL, what you sell and where you ship, and the minimum age your lawyer or compliance advisor has confirmed. Say whether the gate covers the whole store or only the signup, whether it asks for a date of birth or a yes/no, how long a pass should be remembered, the under-age message and the page under-age visitors should go to. For the look, attach your logo, a photo for a full page and your colors. Name the Klaviyo list for signups, and say whether you also want a birthday question in the form. The gate itself is a store setting (Settings, Age gate), and the popup is built to follow it.

Questions

Is an age verification popup enough to sell alcohol or vapes online?

Usually not on its own. A popup asks for an age; it cannot check one. Industry codes such as the Distilled Spirits Council’s expect an age affirmation before marketing, while laws on sales and delivery can require more. For vapes, the PACT Act requires database checks of the buyer’s name, birth date and address and an adult signature with photo ID at delivery. Ask a lawyer which checks apply to your products and states.

Should an age gate ask for date of birth or just yes or no?

A date of birth is the stricter choice and the common one: 91% of the top alcohol brand sites in one study asked for it. The Distilled Spirits Council says a yes/no question or a birth year alone does not meet its code. A yes/no is faster and may be acceptable where your rules allow it. Veya defaults to date of birth and offers yes/no as an option.

How old do you have to be to buy vapes in the US?

21. Federal law raised the minimum age for all tobacco products, e-cigarettes included, from 18 to 21 on December 20, 2019, according to the FDA. States can add their own rules on top, and online delivery sales also fall under the PACT Act. Set the age gate to 21 for US vape sales, and check state law with a lawyer before you ship.

Does an age gate store my customers’ birthdates?

It doesn’t have to, and in Veya it doesn’t. The date of birth is checked in the visitor’s browser and never stored or sent. A signup records only that the visitor passed, the minimum age and the method, and Klaviyo gets those three facts. If you want birthdays for birthday emails, ask for them in the signup form, where the subscriber chooses to share them.

Can I show the age gate only before my email popup?

Yes. In Veya, the gate can sit in front of the signup popup only, so the store opens freely and the gate appears when the popup would. An under-age answer, or pressing Escape, means no popup and the visitor keeps browsing. A store selling mainly age-restricted products usually gates the whole store instead. Which one fits depends on your products and your legal advice.

Sources

Figures checked November 6, 2026.

Your next popup?
We’ll build it for you.

14-day free trial on every plan. Custom design and revisions included.