Skip to main content

Page Blocker

Block an entire page based on location

Overview

Untitled

The page blocker component will take a comma-separated list of identifiers to make a calls to determine if the page should be blocked by a modal depending on the user location. You can manually set the location or by default this will be determined by the request ip lookup.

// custom defined tag
<bam-page-blocker
property-id="1"
identifiers="canda-compliance,another-identifier">
</bam-page-blocker>

Properties

PropertyAttributeDescriptionTypeDefault
buttonTextbutton-textSet the button text seen on the snippet, defaults to “Take Me There” (optional)stringundefined
deferdeferbooleanfalse
devModedev-modebooleanfalse
identifiersidentifiers(required) This is a comma-separated list of identifiers w/ NO SPACES, see below. This will determine the specified compliance identifiers to check.stringundefined
locationlocation(required)stringundefined
propertyIdproperty-id(required)numberundefined