Home / Documentation / Version 3 / JavaScript / Events / age_gate_shown
age_gate_shown
This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, contact a developer for assistance. We are unable to provide support for customisations under our Support Policy.
JavaScript event fired when a user is shown Age Gate.
Note:agegateshown
is also fired for legacy reasons but should be considered deprecated.
Example
javascript
window.addEventListener('age_gate_shown', function () {
// Your action
});
Age Gate method
This is available in the following modes (advanced settings)
JavaScript