iOS Exit Offer allows you to offer users you are navigating out of your site a coupon code or other offer. iOS Exit Offer is a free to use (both personal and commercial) javascript script, just keep the credit intact at the top of the script. Those who really like the script are encouraged to link back to techsock.com or donate via techsock.com
iOS Exit Offer utilizes cookies to meet specific criteria before displaying the prompt.
- Should not prompt on a refresh
- Only prompt once the user has visited the same page twice
- Prompt should not fire on internal navigation
- Copy script into your chosen directory
- Change variables at begin of script
- Call script on each page you want to possible offer the script
<script src="ios-exit.js"></script>
Use php version and add the following to the footer of you theme:
<?php include_once("ios-exit.php") ?>
Update the above code with the correct location of the iOS Exit Offer script.
Trying to debug? Just uncomment the console.log lines