Project Link
Ouibounce: A small library enabling you to display a modal before a user leaves your website.
With this drupal module, you can embed any kind of block into the Ouibounce modal window.
Drupal 8/9
Installation
- Download Ouibounce library from here
- Place the "ouibounce.js" file into "/libraries/ouibounce" folder
- Install "Ouibounce Exit Modal" module
- Go to blocks, and place "Ouibounce Block" into your content area, and configure it
Dependencies
- Ouibounce library (tested with v0.0.12): Download it from GitHub
Drupal 7
Installation
- Download Ouibounce library from here
- Uncompress the downloaded file, and copy the "build" folder into "/sites/all/libraries/ouibounce" folder.
- Install "Ouibounce Exit Modal" module as described here: Installing modules (Drupal 7)
- View the status report at admin/reports/status to check that Ouibounce library is installed correctly.
- Visit "/admin/config/user-interface/ouibounce-exit-modal" to adjust the settings
- Select a block you want to display in the modal, and save changes.
- Go to blocks, and place "Ouibounce Exit Modal" block into your content area.
Dependencies
- Libraries API (2.x)
- Ouibounce library (tested with v0.0.12): Download it from GitHub