GSGeneral Spirit
Log inStart free

Pre-launch testing checklist for an age gate

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

Summary

A generic checklist for testing an alcohol brand's age gate before it goes live. It covers search crawlers and Google's URL Inspection tool, mobile layouts, accessibility against WCAG 2.2, remembered visitors, caching and CDNs, per-country ages, and the handover to checkout, with the official documentation behind each test.

An age gate sits in front of every page on an alcohol brand's site, so a fault in it affects every visitor and every search result at once. The time to find faults is before launch. This checklist is generic: it applies whichever gate you use, and it points to the official documentation behind each test. Work through it on a staging copy first, then again on the live site after launch.

1. Search crawlers

Search engines need to read your pages, not just the gate.

  • Know which Googlebot you're testing for. Google says Googlebot is two crawlers, Googlebot Smartphone and Googlebot Desktop, and that for most sites the majority of crawl requests come from the mobile crawler because Google primarily indexes the mobile version (Googlebot).
  • Run the URL Inspection tool's live test on your home page, a product page and a content page. Google says the tool can show a screenshot of how its inspection crawler sees the page, and list the loaded resources and JavaScript output (URL Inspection tool). Pass: the screenshot shows your page content, not only the gate.
  • Check the rendered HTML, not just the source. Google describes crawling, rendering and indexing as three phases, with pages queued for rendering (JavaScript SEO basics). If your gate is JavaScript, test what the page looks like after rendering.
  • Don't redirect to a separate gate page. Google's guidance on mandatory interstitials, which names age gates, recommends overlaying the content rather than redirecting requests to another page, because redirecting every URL to one page removes all but that page from search results. For content behind a mandatory age gate, it recommends letting Googlebot crawl without triggering the gate, after confirming that the requests really come from Googlebot (Avoid intrusive interstitials).
  • Pass: every URL keeps its own address, and the inspected page shows real content.

For background, see age gates and SEO, the search crawler and intrusive interstitial glossary entries, and cloaking.

2. Mobile

Most of your visitors, and most of Google's crawling, will be on phones.

  • Test on at least one small iPhone and one small Android phone, in portrait and landscape.
  • Check the gate fits without horizontal scrolling and that buttons can be tapped with a thumb.
  • Check the date-of-birth fields bring up a numeric keypad, or that the date picker is easy to use.
  • Google says the mobile version of a site is used for indexing and ranking, and recommends the same primary content on mobile as on desktop (mobile-first indexing). Check the gate doesn't hide or remove content on mobile that desktop visitors get.

3. Accessibility (WCAG 2.2)

An age gate is often a modal dialog, which is one of the easiest places to lock out keyboard and screen reader users. Test against these success criteria from WCAG 2.2:

TestWCAG 2.2 criterion
The gate can be reached, used and left with the keyboard alone2.1.2 No Keyboard Trap (A)
Focus moves in a logical order through the gate2.4.3 Focus Order (A)
The focused control is always visibly marked2.4.7 Focus Visible (AA)
Date fields and buttons have labels or instructions3.3.2 Labels or Instructions (A)
Text has a contrast ratio of at least 4.5:11.4.3 Contrast (Minimum) (AA)
The gate works at a width of 320 CSS pixels without two-way scrolling1.4.10 Reflow (AA)
Buttons are at least 24 by 24 CSS pixels, or spaced as WCAG allows2.5.8 Target Size (Minimum) (AA)

The W3C's modal dialog pattern adds practical checks: when the dialog opens, focus moves into it; Tab and Shift+Tab stay within it; and Escape closes it (Dialog (Modal) Pattern). For an age gate, decide with your team what Escape should do, because closing the gate shouldn't count as a yes. Test with a screen reader as well: VoiceOver on iOS and macOS, and NVDA or Narrator on Windows.

Our guide to age gate UX, copy and design covers wording and layout.

4. The remembered method

If your gate remembers returning visitors:

  • An adult who answers yes isn't asked again on the next page or the next visit, for the period you chose.
  • A visitor who answers no isn't remembered as yes, and can't get past the gate by reloading or using the back button.
  • Clearing cookies and site data brings the gate back.
  • A private or incognito window shows the gate.
  • Your cookie banner and privacy notice describe the stored answer in the way you and your counsel decided.

See remembered age gates, cookie duration and consent for the privacy side.

5. Caching and CDNs

Caching is the most common hidden cause of age gate faults, because the same page is reused across visitors.

  • Personalised responses. MDN explains that the private directive means a response can be stored only in a private cache, such as the browser's, and advises adding it to user-personalised content and responses for sessions managed with cookies. It also explains that no-store asks caches not to store a response, and no-cache allows storage but requires the cache to check with the origin server before each reuse (Cache-Control).
  • Variants. If your server sends different HTML depending on a request header, MDN explains that Vary makes caches store separate responses based on the headers listed, and says the same Vary value should be sent on all responses for a URL (Vary).
  • Test it: open the site in two different browsers. Answer the gate in one, then load the same URLs in the other. The second browser must still see the gate. Repeat after purging the CDN and from a different country, if your CDN has regional edges.
  • Script caching. If the gate is a script, check that an update reaches visitors within your expected time and doesn't break pages still holding the old version.

6. Per-country ages

  • Test from, or simulate, each country you sell into. Check the gate asks for the right legal purchase age, for example 21 for the United States, 18 for the United Kingdom, and 20 for spirits in Finland.
  • Test a birth date one day either side of each age threshold, and on 29 February.
  • Test what happens when the country can't be detected, such as on a VPN: the gate should fall back to the age you chose.
  • Check your legal drinking ages list against the markets you launch in.

7. Checkout and the rest of the funnel

  • Confirm the gate doesn't block payment pages, order confirmation emails or account pages in ways that break checkout.
  • Where a market requires a second question at checkout, such as New Zealand's declaration again immediately before the sale (see our New Zealand page), test that it appears.
  • Check delivery steps for markets that expect ID at the door. See age checks at delivery.
  • Check AI agent and bot settings behave as you intend. See AI shopping agents and alcohol age gates.

8. Launch day

  1. Re-run the URL Inspection live test on the live URLs.
  2. Repeat the two-browser cache test on production.
  3. Do a full keyboard-only pass.
  4. Place a test order in each launch market.
  5. Note the date of every test, so you can repeat them after any theme, CDN or gate update.

General Spirit is a JavaScript age gate that installs with a script tag, with no proxy or DNS changes, and as a theme snippet on Shopify. It offers date-of-birth, yes/no and remembered methods, has legal ages for every country built in, always lets search crawlers through, and lets brands allow AI agents, require them to attest, or block them. It doesn't check ID. Whichever gate you use, run these tests yourself. For choosing a gate, see how to choose an age gate.

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

FAQ

How do I check that Google can still see my pages behind an age gate?

Use the URL Inspection tool in Google Search Console and run a live test. It shows a screenshot of how Google's inspection crawler sees the page, along with the loaded resources and JavaScript output. If the screenshot shows only the gate and none of your content, fix that before launch.

Which accessibility checks matter most for an age gate?

Start with keyboard use: a visitor must be able to reach, use and leave the gate with the keyboard alone (WCAG 2.1.2 and 2.4.3), with a visible focus indicator (2.4.7). Then check labels on the date fields (3.3.2), text contrast of at least 4.5:1 (1.4.3), reflow at 320 CSS pixels (1.4.10) and buttons of at least 24 by 24 CSS pixels (2.5.8).

Why can caching break an age gate?

If a CDN or shared cache stores a page that was built after one visitor answered the gate, it may serve that version to the next visitor. MDN advises the private directive for personalised responses and explains that Vary makes caches store separate versions by request header. Test with a fresh browser and a cleared cache.

What should I test for the remembered method?

That a returning adult isn't asked again for as long as you've chosen, that clearing site data brings the gate back, that a visitor who said no isn't remembered as yes, and that your cookie banner and privacy notice describe the storage as you and your counsel decided.

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

Related

GSGeneral Spirit

Pre-launch testing checklist for an age gate

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

Summary

A generic checklist for testing an alcohol brand's age gate before it goes live. It covers search crawlers and Google's URL Inspection tool, mobile layouts, accessibility against WCAG 2.2, remembered visitors, caching and CDNs, per-country ages, and the handover to checkout, with the official documentation behind each test.

On this page

An age gate sits in front of every page on an alcohol brand's site, so a fault in it affects every visitor and every search result at once. The time to find faults is before launch. This checklist is generic: it applies whichever gate you use, and it points to the official documentation behind each test. Work through it on a staging copy first, then again on the live site after launch.

1. Search crawlers

Search engines need to read your pages, not just the gate.

  • Know which Googlebot you're testing for. Google says Googlebot is two crawlers, Googlebot Smartphone and Googlebot Desktop, and that for most sites the majority of crawl requests come from the mobile crawler because Google primarily indexes the mobile version (Googlebot).
  • Run the URL Inspection tool's live test on your home page, a product page and a content page. Google says the tool can show a screenshot of how its inspection crawler sees the page, and list the loaded resources and JavaScript output (URL Inspection tool). Pass: the screenshot shows your page content, not only the gate.
  • Check the rendered HTML, not just the source. Google describes crawling, rendering and indexing as three phases, with pages queued for rendering (JavaScript SEO basics). If your gate is JavaScript, test what the page looks like after rendering.
  • Don't redirect to a separate gate page. Google's guidance on mandatory interstitials, which names age gates, recommends overlaying the content rather than redirecting requests to another page, because redirecting every URL to one page removes all but that page from search results. For content behind a mandatory age gate, it recommends letting Googlebot crawl without triggering the gate, after confirming that the requests really come from Googlebot (Avoid intrusive interstitials).
  • Pass: every URL keeps its own address, and the inspected page shows real content.

For background, see age gates and SEO, the search crawler and intrusive interstitial glossary entries, and cloaking.

2. Mobile

Most of your visitors, and most of Google's crawling, will be on phones.

  • Test on at least one small iPhone and one small Android phone, in portrait and landscape.
  • Check the gate fits without horizontal scrolling and that buttons can be tapped with a thumb.
  • Check the date-of-birth fields bring up a numeric keypad, or that the date picker is easy to use.
  • Google says the mobile version of a site is used for indexing and ranking, and recommends the same primary content on mobile as on desktop (mobile-first indexing). Check the gate doesn't hide or remove content on mobile that desktop visitors get.

3. Accessibility (WCAG 2.2)

An age gate is often a modal dialog, which is one of the easiest places to lock out keyboard and screen reader users. Test against these success criteria from WCAG 2.2:

TestWCAG 2.2 criterion
The gate can be reached, used and left with the keyboard alone2.1.2 No Keyboard Trap (A)
Focus moves in a logical order through the gate2.4.3 Focus Order (A)
The focused control is always visibly marked2.4.7 Focus Visible (AA)
Date fields and buttons have labels or instructions3.3.2 Labels or Instructions (A)
Text has a contrast ratio of at least 4.5:11.4.3 Contrast (Minimum) (AA)
The gate works at a width of 320 CSS pixels without two-way scrolling1.4.10 Reflow (AA)
Buttons are at least 24 by 24 CSS pixels, or spaced as WCAG allows2.5.8 Target Size (Minimum) (AA)
Scroll sideways to see the full table.

The W3C's modal dialog pattern adds practical checks: when the dialog opens, focus moves into it; Tab and Shift+Tab stay within it; and Escape closes it (Dialog (Modal) Pattern). For an age gate, decide with your team what Escape should do, because closing the gate shouldn't count as a yes. Test with a screen reader as well: VoiceOver on iOS and macOS, and NVDA or Narrator on Windows.

Our guide to age gate UX, copy and design covers wording and layout.

4. The remembered method

If your gate remembers returning visitors:

  • An adult who answers yes isn't asked again on the next page or the next visit, for the period you chose.
  • A visitor who answers no isn't remembered as yes, and can't get past the gate by reloading or using the back button.
  • Clearing cookies and site data brings the gate back.
  • A private or incognito window shows the gate.
  • Your cookie banner and privacy notice describe the stored answer in the way you and your counsel decided.

See remembered age gates, cookie duration and consent for the privacy side.

5. Caching and CDNs

Caching is the most common hidden cause of age gate faults, because the same page is reused across visitors.

  • Personalised responses. MDN explains that the private directive means a response can be stored only in a private cache, such as the browser's, and advises adding it to user-personalised content and responses for sessions managed with cookies. It also explains that no-store asks caches not to store a response, and no-cache allows storage but requires the cache to check with the origin server before each reuse (Cache-Control).
  • Variants. If your server sends different HTML depending on a request header, MDN explains that Vary makes caches store separate responses based on the headers listed, and says the same Vary value should be sent on all responses for a URL (Vary).
  • Test it: open the site in two different browsers. Answer the gate in one, then load the same URLs in the other. The second browser must still see the gate. Repeat after purging the CDN and from a different country, if your CDN has regional edges.
  • Script caching. If the gate is a script, check that an update reaches visitors within your expected time and doesn't break pages still holding the old version.

6. Per-country ages

  • Test from, or simulate, each country you sell into. Check the gate asks for the right legal purchase age, for example 21 for the United States, 18 for the United Kingdom, and 20 for spirits in Finland.
  • Test a birth date one day either side of each age threshold, and on 29 February.
  • Test what happens when the country can't be detected, such as on a VPN: the gate should fall back to the age you chose.
  • Check your legal drinking ages list against the markets you launch in.

7. Checkout and the rest of the funnel

  • Confirm the gate doesn't block payment pages, order confirmation emails or account pages in ways that break checkout.
  • Where a market requires a second question at checkout, such as New Zealand's declaration again immediately before the sale (see our New Zealand page), test that it appears.
  • Check delivery steps for markets that expect ID at the door. See age checks at delivery.
  • Check AI agent and bot settings behave as you intend. See AI shopping agents and alcohol age gates.

8. Launch day

  1. Re-run the URL Inspection live test on the live URLs.
  2. Repeat the two-browser cache test on production.
  3. Do a full keyboard-only pass.
  4. Place a test order in each launch market.
  5. Note the date of every test, so you can repeat them after any theme, CDN or gate update.

General Spirit is a JavaScript age gate that installs with a script tag, with no proxy or DNS changes, and as a theme snippet on Shopify. It offers date-of-birth, yes/no and remembered methods, has legal ages for every country built in, always lets search crawlers through, and lets brands allow AI agents, require them to attest, or block them. It doesn't check ID. Whichever gate you use, run these tests yourself. For choosing a gate, see how to choose an age gate.

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

FAQ

How do I check that Google can still see my pages behind an age gate?

Use the URL Inspection tool in Google Search Console and run a live test. It shows a screenshot of how Google's inspection crawler sees the page, along with the loaded resources and JavaScript output. If the screenshot shows only the gate and none of your content, fix that before launch.

Which accessibility checks matter most for an age gate?

Start with keyboard use: a visitor must be able to reach, use and leave the gate with the keyboard alone (WCAG 2.1.2 and 2.4.3), with a visible focus indicator (2.4.7). Then check labels on the date fields (3.3.2), text contrast of at least 4.5:1 (1.4.3), reflow at 320 CSS pixels (1.4.10) and buttons of at least 24 by 24 CSS pixels (2.5.8).

Why can caching break an age gate?

If a CDN or shared cache stores a page that was built after one visitor answered the gate, it may serve that version to the next visitor. MDN advises the private directive for personalised responses and explains that Vary makes caches store separate versions by request header. Test with a fresh browser and a cleared cache.

What should I test for the remembered method?

That a returning adult isn't asked again for as long as you've chosen, that clearing site data brings the gate back, that a visitor who said no isn't remembered as yes, and that your cookie banner and privacy notice describe the storage as you and your counsel decided.

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

Related

Age gates and SEO: how to gate without losing rankingsAge gate UX: copy and design that keep bounce lowHow to choose an age gate for a beer, wine or spirits brand: a buyer's checklist