European and American laws require digital publishers to inform visitors to their sites and apps about their use of cookies and other forms of local storage and obtain consent.
The implementation of such notice can vary from website to website. In this tutorial, we have chosen to explain the most common use case: a sticky bar popup with some informational text and an "Agree" button.
How to add a Cookie Consent Popup
EngageBox offers many cookie consent pre-made popup templates you can choose from, which is what we will do. There's no need to create one from scratch.
Step 1: Go to Components > EngageBox > Click "New"
Step 2: Search for "cookie law bar"
Step 3: Insert the popup
Step 4: How do you trigger it correctly
Go to Behavior > Trigger and select the "Page Load" trigger (selected by default). This ensures our popup appears on page load.
Secondly, we need to tell the popup not to reappear after it has been closed. In this example, we'll set the popup to hide for 30 days. You can configure it as desired.
Note
EngageBox's purpose is to display the text given in the Content tab; it doesn't prevent cookies from being stored on the visitor's browser.