How to Add a 21+ Age Gate to a Shopify Store
You can add a 21+ age gate to a Shopify store two ways: install an age verification app, or build the gate into the theme. An app takes an afternoon. A gate built into the theme takes longer and looks like the rest of your store.
App or Built Into the Theme
| App | Built into the theme | |
|---|---|---|
| Cost | A monthly fee to the app | Part of the theme build |
| Setup | An afternoon | Designed and coded with the store |
| Look | The app’s layout with your logo | Your type, color and motion |
| Code | The app adds its own script to the store | Lives in the theme files |
| Changes | Whatever the app’s settings allow | Anything, by editing the theme |
An app is the right call for a store that’s already live on a stock theme. Build it into the theme when you’re having a custom theme made anyway, because the gate is the first screen every new visitor sees.
What a Gate Does
A gate covers the store on the first visit and asks one question: are you 21 or older? Yes opens the store. No sends the visitor somewhere else. The store remembers the answer, so a returning customer goes straight in.
A gate does not check ID. It records that the visitor said yes. If your state, your payment provider or a marketplace you sell through asks for more than a click, find out what they accept before you build. I’m a designer, so take that question to a lawyer or to the provider itself.
How Kushface’s Gate Works
Kushface sells California streetwear and flower, so the whole store sits behind a 21+ gate. I built it into the theme.
A new visitor lands on the question. When they confirm, a video intro plays and the store opens behind it. I designed the gate and the intro together, as the opening of the brand, so the first thing a visitor sees already looks like Kushface. You can try it at kushface.com.
Building One Into a Theme
Here’s the order I work in.
- Write the question and both answers. Decide where a “no” goes.
- Design the gate with the store’s own type and color.
- Show it before anything else on the page, and hold the store behind it until the visitor answers.
- Save the answer in the browser so the gate shows once.
- Make sure it works with a keyboard and a screen reader. The two buttons need real labels and focus has to land on them.
- Keep the page content in the HTML underneath, so search engines can still read the store.
Step 6 is the one people skip. A gate that redirects every visitor to a separate page can leave search engines with nothing to index.
What It Costs
Age verification apps charge a monthly fee, and the Shopify App Store shows the current price for each. In a custom storefront from me, the gate is part of the build, which starts at $9,500.
Questions People Ask
- Does Shopify have an age gate built in?
- Shopify's admin has no age gate setting. Some themes include one, the Shopify App Store has several, and a custom theme can have its own.
- Does an age gate check ID?
- No. A gate asks the visitor to confirm their age and remembers the answer. Checking ID is a separate service, usually run at checkout.
- Will an age gate hurt my search ranking?
- A gate built as a layer over the page leaves the page content readable by search engines. A gate that sends every visitor to a separate page first can hide it.