Free tool
Age Gate Builder
Set up an "are you old enough?" popup, watch it change as you type, and copy one snippet into your site. It works on Shopify, WooCommerce, Squarespace, Webflow and any site where you can add custom code. No app to install, no account and no monthly fee.
What this is: a self-declaration popup. Visitors say they are old enough, or enter a date of birth; nothing checks that it is true. It is not identity verification and this page is not legal advice. Check what the law asks of your shop and your products.
Free, no sign-in. What you type stays in this browser tab. Opening this page sends a page view to this site, and pressing Copy the snippet sends a product use. The beacon does not include what you type. The snippet on your site does not call this site.
Want several designs, rules for which pages or products show the gate, and one snippet for all of them? Age Gate Builder Pro is the same builder as one file that works offline. One payment, no subscription, no credit link. See Age Gate Builder Pro
Live preview
The preview does not remember your answer and never leaves this page.
Your snippet
The snippet is complete in itself. It does not call this site. After a pass it keeps one cookie in the visitor's own browser (agb_pass), so they are not asked again until it runs out. A date of birth is used once to work out the age and is not kept. The free snippet shows a small "Age gate by Age Gate Builder" link.
Where to paste it
Paste the snippet once, in the place your platform gives for site-wide code at the end of every page (just before </body>). Menu names change from time to time; look for "custom code" or "code injection" if yours differ.
Shopify
- Online Store, then Themes.
- On your current theme open the "..." menu and choose Edit code.
- Open
layout/theme.liquid. - Paste the snippet on the line just above
</body>and save.
WooCommerce (WordPress)
- Install a header and footer code plugin (for example WPCode), or use your theme's own custom code box if it has one.
- Paste the snippet into the site-wide footer box.
- Save. If you use a caching plugin, clear its cache.
Squarespace
- Open the site's settings and find Code Injection (on plans that include it).
- Paste the snippet into the Footer box.
- Save.
Webflow
- Open Site settings, then Custom code (on plans that include it).
- Paste the snippet into the Footer code box.
- Save, then publish the site.
Any other site
- Open the template or layout file that every page uses.
- Paste the snippet just above
</body>and publish.
To test it, open your site in a private window. To see the popup again after a pass, delete the agb_pass cookie for your site or use a new private window.
Guides: How to add an age verification popup on Shopify · How to add an age verification popup on WooCommerce · What an HTML age verification popup contains
Age Gate Builder is a Master Invictus house brand.