Set Up the Storefront Age Gate
What does this do for me?
This setup places a date-of-birth gate over the storefront. A visitor must meet the configured minimum age before the gate closes and the app remembers the pass for the configured cookie period.1. Activate the theme app embed
- Open Age Verification in Shopify admin.
- On the Dashboard, select Open the theme editor to activate the age gate.
- In the theme editor, enable the Age Verification app embed.
- Select Save in the theme editor.
2. Configure the baseline gate
- Open Settings in the app.
- Under General, turn on Enable age verification.
- Choose Simple (button click) for the baseline self-certification flow.
- Set the Minimum age.
- Edit the heading, subheading, disclaimer, and button labels if needed.
- Under Under-age behavior, choose either a redirect or a block message.
- Set how many days the verified-state cookie should last.
- Select Save.
3. Check the storefront
Open the storefront. The gate displays a date-of-birth field and the configured confirm and decline actions. A successful pass writes theage_verified cookie; while that cookie is live, normal visits do not reopen the gate.
To test the gate again, remove that cookie in the browser or use a browser profile that does not have it.