age_gate_failed

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 fails Age Gate.

Note:agegatefailed is also fired for legacy reasons but should be considered deprecated.

Example

javascript

window.addEventListener('age_gate_failed', function () {
  // Your action
});

 

Age Gate method

This is available in the following modes (advanced settings)
JavaScript