Actually there is no way to find out when user will leave this site.
Before Exit Popup tries to get user attention back to site by showing a popup when the cursor is moved to browser control tab.
This plugin does not stop user from closing the browser or tab.
This section describes how to install the plugin and get it working.
- Upload before-exit-popup to the
- Activate the plugin through the ‘Plugins’ menu in WordPress