Want to bypass the OptinMonster display rules and use your own code to hide your campaigns in certain situations? It’s easy with OptinMonster’s JavaScript Events API. Check out some examples below to get started.
Before You Start
Here are some things to know before you begin:
- In most cases, you should hide / show campaigns using the Display Rules.
- The examples provided in this guide make use of our Javascript Events API.
- You should add the code directly to the footer of your website, before the closing </body> tag.
- Code should be wrapped in valid
<script>
tags.