GSGeneral Spirit
Log inStart free

Age gates for BigCommerce alcohol stores

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

Summary

A practical guide to adding an age gate to a BigCommerce alcohol store. BigCommerce's docs don't describe a built-in age gate, so most stores add one as a script through Script Manager or the Scripts API. The guide covers head or footer placement, which pages to target, the consent category, Catalyst storefronts, multi-storefront channels, checkout scripts and US direct-to-consumer shipping tools.

BigCommerce runs plenty of beer, wine and spirits stores, but it doesn't hand you an age gate out of the box. We looked through BigCommerce's developer documentation and didn't find a built-in age gate setting; the age gates we found are third-party apps in its marketplace. So on BigCommerce, an age gate is almost always a script you add to the storefront.

That makes the setup question mostly about scripts: where they go, which pages they run on, how they interact with cookie consent, and what changes on Catalyst or multi-storefront setups. This guide works through each, using BigCommerce's own documentation. For the wider picture, start with age gates for alcohol brands.

How scripts get onto a BigCommerce storefront

There are two routes, and both end up in the same place.

Script Manager. BigCommerce's guide to installing scripts in Catalyst describes Script Manager as a way to manage third-party scripts in the control panel instead of in code. You go to Storefront > Script Manager, create a script, name it, and set:

  • Location: where it's injected, such as the <head> or the bottom of the <body>.
  • Pages where it applies: for example All Pages or Storefront Pages.
  • Script content or URL: paste inline code or point to an external script.
  • Consent category: Essential, Functional, Analytics or Targeting.

Scripts API. The Scripts API lets apps deploy the same kind of scripts programmatically. Scripts added through the API appear in the storefront's Script Manager, so a merchant can inspect them; control panel users can change their consent category or delete them, but only the API account that created a script can otherwise modify it. This is how most marketplace apps install themselves.

Some limits are worth knowing. BigCommerce says each channel can have 50 control panel scripts, each app can have 10 API scripts, an inline script can include up to five <script> tags, and on a BigCommerce-hosted storefront new or updated scripts take 20 seconds to cache. Older stores on the legacy Blueprint theme engine don't render scripts from Script Manager or the Scripts API at all.

Step 1: Choose the pages

BigCommerce scopes scripts by page group. Per the Scripts API docs:

  • Storefront covers the shopping pages: product, category, brand, search, cart, blog, contact and other content pages.
  • All pages adds checkout, order confirmation, login and My Account.
  • Checkout and Order confirmation are separate scopes.

For an age gate, Storefront is usually the right choice. It covers every page a visitor can land on from search or a link, including the cart. Checkout scripts bring extra rules (see Step 5), and a visitor reaches checkout through the storefront anyway.

Step 2: Put the gate in the header

An age gate should appear before the page underneath is usable, without popping in late and shifting the layout. That argues for header placement.

On Stencil themes, BigCommerce renders header scripts through the {{head.scripts}} expression and footer scripts through {{footer.scripts}}. Its troubleshooting notes say a Stencil template must include these expressions, or scripts set to that location won't render. BigCommerce recommends the footer for broad app compatibility in some contexts; for a gate on a theme you control, check that {{head.scripts}} is present in your templates and use the header. If you use a marketplace theme, preview a product, category and content page to confirm the gate renders on each.

Our age gate UX guide covers why an overlay that doesn't shift the page matters.

This is the step that's easiest to get wrong. BigCommerce's Catalyst docs explain that if cookie consent is enabled, non-essential scripts are deferred until the shopper grants consent for their category. A gate filed as Functional or Analytics could stay hidden until the shopper accepts cookies, and a shopper who declines might never see it.

The Essential category runs regardless of consent choices. Whether your gate belongs there, and what you need to tell shoppers about any cookie or storage it uses to remember them, is a privacy question to settle with counsel. Whatever you choose, test with consent declined.

Step 4: Catalyst storefronts

Catalyst is BigCommerce's storefront framework built on Next.js. According to BigCommerce:

  • Catalyst fetches Script Manager scripts set to All Pages or Storefront Pages and ignores other scopes such as Order Confirmation.
  • Scripts are loaded with the Next.js <Script> component in a deferred way, so a script should handle being loaded after the initial render.
  • Catalyst uses client-side navigation, so scripts aren't guaranteed to fire on every page change.
  • Catalyst scripts don't support Handlebars.
  • Script support arrived in Catalyst 1.1.

For a gate, that means two checks. First, the gate should cover the page as soon as it loads, even though it arrives after the first render. Second, it should keep working as a visitor moves between pages without a full reload. A gate that relies on a fresh page load per visit may be fine if it remembers the visitor, but test a deep link, then several clicks, in a fresh browser.

BigCommerce also documents adding scripts directly in Catalyst code with the Next.js <Script> component. It warns that scripts added this way bypass Catalyst's consent management, so Script Manager is the simpler route for most stores.

Step 5: Leave checkout to checkout rules

You probably don't need the gate script on checkout. If you do add any script there, BigCommerce's docs say:

  • All scripts on the checkout page need at least one subresource integrity (SRI) hash, and Script Manager accepts up to five.
  • Checkout and order confirmation scripts only render with Optimized One-Page Checkout.
  • A script's hash stops matching if the provider changes the script, and the script then fails to run.

Age rules at checkout and delivery, such as an age check at delivery, are usually handled by your checkout, carrier and shipping tools rather than by the storefront gate.

Step 6: Multi-storefront

BigCommerce says scripts are channel-aware, and Script Manager is available in the channel settings for each storefront. If you run separate storefronts for different countries or brands, add the gate to each one and keep its settings consistent. The 50-script limit also applies per channel.

Different storefronts often serve different markets, so set each one to the right legal purchase age. The legal drinking ages around the world pillar lists them.

US direct-to-consumer stores

If you ship alcohol direct to consumers in the US, the gate is one small part of the job; see United States and DTC alcohol shipping. BigCommerce's marketplace lists Alcohol-to-Consumer, a connector built by iFuel that links a BigCommerce store to Sovos's direct-to-consumer alcohol service. Its listing describes features including sales tax calculation, checks on age and volume limits, order management and shipping and tracking information. Tools like this work at the order level, while an age gate works at the front door, so they cover different steps.

Don't lock out search engines and agents

Google's guidance on intrusive interstitials treats age gates as mandatory interstitials and recommends overlaying the content rather than redirecting, and letting Googlebot crawl content without triggering the gate. A script-based overlay fits that pattern well. Make sure your gate lets search crawlers through, and decide how it handles AI shopping agents; our AI shopping agents setup guide covers that.

Checklist

  1. Confirm your storefront runs Stencil or Catalyst 1.1 or later, not Blueprint.
  2. Add the gate in Script Manager, scoped to Storefront pages.
  3. Use header placement and check {{head.scripts}} is in your Stencil templates.
  4. Choose the consent category on purpose, and test with consent declined.
  5. On Catalyst, test deep links and client-side page changes.
  6. Repeat for each storefront channel, with the right legal age for each market.
  7. Check that search crawlers see your content.

Where General Spirit fits

General Spirit is a JavaScript gate that installs with a script tag, with no proxy or DNS changes, so on BigCommerce it goes in through Script Manager like any other script. It offers date-of-birth, yes/no and remembered methods, has legal ages for every country built in, always lets search crawlers through, and can allow, ask for attestation from or block AI agents, with the policy published at generalspirit.com/policy/<brand>.json. It doesn't check ID. For a comparison of options, see how to choose an age gate and the age gate glossary entry.

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

FAQ

Does BigCommerce have a built-in age gate?

We didn't find one in BigCommerce's developer documentation. Its app marketplace lists third-party age gate apps, and any gate that ships as JavaScript can be added through Script Manager or the Scripts API.

Where should an age gate script go in BigCommerce Script Manager?

For most stores, the header of Storefront pages, so the gate loads early on every shopping page. Your Stencil theme must include the {{head.scripts}} expression for header scripts to render. Pick a consent category that won't hold the gate back until the shopper accepts cookies.

Does an age gate work on a BigCommerce Catalyst storefront?

Yes, Catalyst picks up Script Manager scripts set to All Pages or Storefront Pages. BigCommerce notes that Catalyst loads scripts in a deferred way and uses client-side navigation, so the gate script must cope with loading after the first render and with page changes that don't reload the page.

Can I use one age gate across several BigCommerce storefronts?

Scripts are channel-aware, and Script Manager sits in each storefront's channel settings, so you add the gate per storefront. Keep the same script and settings in each, and check each storefront separately.

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

Related

GSGeneral Spirit

Age gates for BigCommerce alcohol stores

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

Summary

A practical guide to adding an age gate to a BigCommerce alcohol store. BigCommerce's docs don't describe a built-in age gate, so most stores add one as a script through Script Manager or the Scripts API. The guide covers head or footer placement, which pages to target, the consent category, Catalyst storefronts, multi-storefront channels, checkout scripts and US direct-to-consumer shipping tools.

On this page

BigCommerce runs plenty of beer, wine and spirits stores, but it doesn't hand you an age gate out of the box. We looked through BigCommerce's developer documentation and didn't find a built-in age gate setting; the age gates we found are third-party apps in its marketplace. So on BigCommerce, an age gate is almost always a script you add to the storefront.

That makes the setup question mostly about scripts: where they go, which pages they run on, how they interact with cookie consent, and what changes on Catalyst or multi-storefront setups. This guide works through each, using BigCommerce's own documentation. For the wider picture, start with age gates for alcohol brands.

How scripts get onto a BigCommerce storefront

There are two routes, and both end up in the same place.

Script Manager. BigCommerce's guide to installing scripts in Catalyst describes Script Manager as a way to manage third-party scripts in the control panel instead of in code. You go to Storefront > Script Manager, create a script, name it, and set:

  • Location: where it's injected, such as the <head> or the bottom of the <body>.
  • Pages where it applies: for example All Pages or Storefront Pages.
  • Script content or URL: paste inline code or point to an external script.
  • Consent category: Essential, Functional, Analytics or Targeting.

Scripts API. The Scripts API lets apps deploy the same kind of scripts programmatically. Scripts added through the API appear in the storefront's Script Manager, so a merchant can inspect them; control panel users can change their consent category or delete them, but only the API account that created a script can otherwise modify it. This is how most marketplace apps install themselves.

Some limits are worth knowing. BigCommerce says each channel can have 50 control panel scripts, each app can have 10 API scripts, an inline script can include up to five <script> tags, and on a BigCommerce-hosted storefront new or updated scripts take 20 seconds to cache. Older stores on the legacy Blueprint theme engine don't render scripts from Script Manager or the Scripts API at all.

Step 1: Choose the pages

BigCommerce scopes scripts by page group. Per the Scripts API docs:

  • Storefront covers the shopping pages: product, category, brand, search, cart, blog, contact and other content pages.
  • All pages adds checkout, order confirmation, login and My Account.
  • Checkout and Order confirmation are separate scopes.

For an age gate, Storefront is usually the right choice. It covers every page a visitor can land on from search or a link, including the cart. Checkout scripts bring extra rules (see Step 5), and a visitor reaches checkout through the storefront anyway.

Step 2: Put the gate in the header

An age gate should appear before the page underneath is usable, without popping in late and shifting the layout. That argues for header placement.

On Stencil themes, BigCommerce renders header scripts through the {{head.scripts}} expression and footer scripts through {{footer.scripts}}. Its troubleshooting notes say a Stencil template must include these expressions, or scripts set to that location won't render. BigCommerce recommends the footer for broad app compatibility in some contexts; for a gate on a theme you control, check that {{head.scripts}} is present in your templates and use the header. If you use a marketplace theme, preview a product, category and content page to confirm the gate renders on each.

Our age gate UX guide covers why an overlay that doesn't shift the page matters.

This is the step that's easiest to get wrong. BigCommerce's Catalyst docs explain that if cookie consent is enabled, non-essential scripts are deferred until the shopper grants consent for their category. A gate filed as Functional or Analytics could stay hidden until the shopper accepts cookies, and a shopper who declines might never see it.

The Essential category runs regardless of consent choices. Whether your gate belongs there, and what you need to tell shoppers about any cookie or storage it uses to remember them, is a privacy question to settle with counsel. Whatever you choose, test with consent declined.

Step 4: Catalyst storefronts

Catalyst is BigCommerce's storefront framework built on Next.js. According to BigCommerce:

  • Catalyst fetches Script Manager scripts set to All Pages or Storefront Pages and ignores other scopes such as Order Confirmation.
  • Scripts are loaded with the Next.js <Script> component in a deferred way, so a script should handle being loaded after the initial render.
  • Catalyst uses client-side navigation, so scripts aren't guaranteed to fire on every page change.
  • Catalyst scripts don't support Handlebars.
  • Script support arrived in Catalyst 1.1.

For a gate, that means two checks. First, the gate should cover the page as soon as it loads, even though it arrives after the first render. Second, it should keep working as a visitor moves between pages without a full reload. A gate that relies on a fresh page load per visit may be fine if it remembers the visitor, but test a deep link, then several clicks, in a fresh browser.

BigCommerce also documents adding scripts directly in Catalyst code with the Next.js <Script> component. It warns that scripts added this way bypass Catalyst's consent management, so Script Manager is the simpler route for most stores.

Step 5: Leave checkout to checkout rules

You probably don't need the gate script on checkout. If you do add any script there, BigCommerce's docs say:

  • All scripts on the checkout page need at least one subresource integrity (SRI) hash, and Script Manager accepts up to five.
  • Checkout and order confirmation scripts only render with Optimized One-Page Checkout.
  • A script's hash stops matching if the provider changes the script, and the script then fails to run.

Age rules at checkout and delivery, such as an age check at delivery, are usually handled by your checkout, carrier and shipping tools rather than by the storefront gate.

Step 6: Multi-storefront

BigCommerce says scripts are channel-aware, and Script Manager is available in the channel settings for each storefront. If you run separate storefronts for different countries or brands, add the gate to each one and keep its settings consistent. The 50-script limit also applies per channel.

Different storefronts often serve different markets, so set each one to the right legal purchase age. The legal drinking ages around the world pillar lists them.

US direct-to-consumer stores

If you ship alcohol direct to consumers in the US, the gate is one small part of the job; see United States and DTC alcohol shipping. BigCommerce's marketplace lists Alcohol-to-Consumer, a connector built by iFuel that links a BigCommerce store to Sovos's direct-to-consumer alcohol service. Its listing describes features including sales tax calculation, checks on age and volume limits, order management and shipping and tracking information. Tools like this work at the order level, while an age gate works at the front door, so they cover different steps.

Don't lock out search engines and agents

Google's guidance on intrusive interstitials treats age gates as mandatory interstitials and recommends overlaying the content rather than redirecting, and letting Googlebot crawl content without triggering the gate. A script-based overlay fits that pattern well. Make sure your gate lets search crawlers through, and decide how it handles AI shopping agents; our AI shopping agents setup guide covers that.

Checklist

  1. Confirm your storefront runs Stencil or Catalyst 1.1 or later, not Blueprint.
  2. Add the gate in Script Manager, scoped to Storefront pages.
  3. Use header placement and check {{head.scripts}} is in your Stencil templates.
  4. Choose the consent category on purpose, and test with consent declined.
  5. On Catalyst, test deep links and client-side page changes.
  6. Repeat for each storefront channel, with the right legal age for each market.
  7. Check that search crawlers see your content.

Where General Spirit fits

General Spirit is a JavaScript gate that installs with a script tag, with no proxy or DNS changes, so on BigCommerce it goes in through Script Manager like any other script. It offers date-of-birth, yes/no and remembered methods, has legal ages for every country built in, always lets search crawlers through, and can allow, ask for attestation from or block AI agents, with the policy published at generalspirit.com/policy/<brand>.json. It doesn't check ID. For a comparison of options, see how to choose an age gate and the age gate glossary entry.

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

FAQ

Does BigCommerce have a built-in age gate?

We didn't find one in BigCommerce's developer documentation. Its app marketplace lists third-party age gate apps, and any gate that ships as JavaScript can be added through Script Manager or the Scripts API.

Where should an age gate script go in BigCommerce Script Manager?

For most stores, the header of Storefront pages, so the gate loads early on every shopping page. Your Stencil theme must include the {{head.scripts}} expression for header scripts to render. Pick a consent category that won't hold the gate back until the shopper accepts cookies.

Does an age gate work on a BigCommerce Catalyst storefront?

Yes, Catalyst picks up Script Manager scripts set to All Pages or Storefront Pages. BigCommerce notes that Catalyst loads scripts in a deferred way and uses client-side navigation, so the gate script must cope with loading after the first render and with page changes that don't reload the page.

Can I use one age gate across several BigCommerce storefronts?

Scripts are channel-aware, and Script Manager sits in each storefront's channel settings, so you add the gate per storefront. Keep the same script and settings in each, and check each storefront separately.

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 guideHow to choose an age gate for a beer, wine or spirits brand: a buyer's checklistAge gate UX: copy and design that keep bounce low