On this page
What this issue is
An age gate is a popup or full-page screen that asks "Are you over 18?" or for a date of birth before showing content. A region gate asks for your country, or redirects you based on your location. Shops selling alcohol, vaping, supplements, gambling or adult products often need them.
Why it costs you leads or sales
A gate sits in front of every other step. If a visitor cannot get past it, they never see your form, product page or checkout. Ad clicks you paid for end on a dead screen.
- Ad clickVisitor lands on your page
- Age or region gateConfirm button fails or loops
- Product or form pageNever reached
- Checkout or leadNo conversion
The gate fails on the first step, so every later step is lost.
Example: illustrative numbers showing how a gate that fails on some devices cuts the visitors who get through.
How to check if your site has it
Open a private window
Use a fresh incognito or private window so no old cookie remembers your answer.
Visit from each target market
If you sell in several countries, test with a VPN or a colleague in each one. Check you land on the right country version.
Confirm the gate and click through
Answer the gate on desktop and on a real phone. Check the overlay closes and the page you wanted loads.
Browse to a second page
Click a product or link. If the gate returns, the answer is not being remembered.
Check the landing URL
Click an ad link with
?gclid=test&utm_source=test. After the gate, check the address bar still holds those parameters.Open the page source
With the gate showing, view the page in a text-only way or with JavaScript off. If the content is not there at all, crawlers may see nothing.
The overlay sits on top of the page and its confirm button does not respond, so the visitor is stuck.
How to fix it
The fix has the same goals on every platform: the confirm button must work, the answer must be remembered, the visitor must land where they meant to go, and tracking parameters must survive.
Find the gate plugin
Check Plugins for an age verification or geo plugin and open its settings. Look at the cookie duration and which pages it covers.
Set a remembered answer
Set the cookie to last days, not just the session, and turn on any option to exclude checkout or thank-you pages if your rules allow it.
Test for conflicts
Disable caching and optimisation plugins briefly. Page caching can serve the gate to everyone even after they confirm.
Check the app or theme code
Open Apps and your theme in Online Store > Themes > Edit code. Find the age gate app or snippet.
Test your Markets setup
In Settings > Markets, confirm each country points to the right store domain or path.
Remove duplicate gates
If both an app and theme code add a gate, remove one. Two overlays can block each other.
Find the gate tag
If the gate is a Custom HTML tag, open it in Tags and check its trigger.
Limit when it fires
Fire it only until the cookie is set. Add a trigger exception that checks a first-party cookie variable.
Preview and test
Use Preview mode to confirm the tag stops firing after confirmation.
Open the gate element
Select the overlay in the Navigator and check its interactions or custom code.
Store the answer
Use a small script to save a cookie or localStorage value and hide the overlay on later pages.
Publish and test
Test on the published site, not only the Designer preview.
Check the popup settings
In your funnel or website builder, open the popup element and review its trigger and close behaviour.
Make the confirm button close it
Make sure the button action is set to close the popup or go to the next step.
Test every step
Preview each funnel step so the gate does not return on later pages.
Open the lightbox
If the gate is a Lightbox, open it in the editor and check the trigger settings.
Link the button
Set the confirm button to close the lightbox.
Limit where it shows
Set the lightbox to open once per visit rather than on every page load.
Find the popup
In Pages, open the Pop-Up or the Code Injection area where the gate lives.
Set display rules
Choose a frequency so it does not reappear after confirmation.
Test on mobile
Check the close or confirm button is on screen on small phones.
Remember the answer
Store a cookie on confirm and skip the gate when it exists. See the snippet below.
Keep parameters
Never redirect to a clean URL. Keep the query string, or at least gclid and UTMs.
Do not hide content from crawlers by accident
Render the page content in the HTML and layer the gate on top, rather than removing the content.
(function () {
var gate = document.getElementById('age-gate');
if (!gate) return;
if (document.cookie.indexOf('age_ok=1') !== -1) {
gate.style.display = 'none';
return;
}
document.getElementById('age-confirm').addEventListener('click', function () {
document.cookie = 'age_ok=1; max-age=2592000; path=/; SameSite=Lax';
gate.style.display = 'none';
document.body.style.overflow = '';
});
})();How to confirm it's fixed
- A fresh private window shows the gate once and the confirm button works on desktop and mobile
- After confirming, a second page loads with no gate
- Each target country lands on the right version
- The address bar still contains gclid and UTM parameters after the gate
- The form, product page and checkout are reachable after the gate
- Page content is present in the HTML source behind the gate
Before
- Gate returns on every page
- Confirm button fails on some phones
- Redirect strips gclid and UTMs
- Robots and crawlers stopped at the gate
After
- Answer remembered for days
- Button works on all tested devices
- Parameters kept through the gate
- Funnel steps reachable after one confirm
How to prevent it happening again
Gates break when someone updates a theme, a consent tool, a cache setting or a geo rule. Retest after any of those changes. Keep one owner for the gate, and write down which countries and pages it covers.
How FunnelGuard handles this
FunnelGuard detects this only partly. When a gate stops the robot, the journey is reported as a blocked step: the check fails at that step, a failure is re-checked from a second region, and you get one alert with a screenshot and a likely cause.
Questions people ask
Why is my age gate blocking real visitors?
Common causes are a confirm button that does not respond on some devices, a cookie that is not saved so the gate returns on every page, or page caching that serves the gate to everyone. Test in a private window on desktop and a real phone to see which one it is.
Why does my age verification popup keep reappearing?
The answer is not being remembered. The cookie may be missing, set for the session only, blocked by a caching layer, or set on a different domain or path. Set a first-party cookie with a duration of days and path=/.
Can an age gate hurt my Google Ads or SEO?
Yes, if it blocks the landing page, strips gclid and UTM parameters in a redirect, or hides content from crawlers. Layer the gate over content that is in the HTML, and keep the query string after the gate.
How do I test a region gate for another country?
Use a VPN set to that country or ask a colleague there, in a fresh private window. Check you land on the right version and that prices, currency and forms work.
Why does a monitoring robot get stopped by my age gate?
A robot starts with no cookie, so it sees the gate like a first-time visitor. If the gate cannot be confirmed by a normal click, or acts as bot protection, the journey stops at that step.
Does FunnelGuard bypass age gates or CAPTCHAs?
No. FunnelGuard never bypasses CAPTCHAs or bot protection. If a gate stops the robot, the step is reported as blocked and you get an alert with a screenshot.
How do I stop an age gate from stripping UTM parameters?
Change the gate or redirect so it keeps the full query string when it sends the visitor on. Then test with a link containing gclid and utm_source and check the address bar after confirming.
Related issues
- CNV-112Popup covers the form or CTA and can't be closedFix guide
- CNV-113Close (X) button missing or off-screen on mobileFix guide
- CNV-114Popup reappears on every pageFix guide
- CNV-117Interstitial blocks content on mobile (Google penalty)Fix guide
- CNV-118Modal opens behind overlay (z-index bug)Fix guide
- CNV-120Scroll locked after closing modalFix guide