How can I use the 'onclick' event to open a campaign?

If you want your campaign to pop up when clicking on a button or a link, you can run a javascript that contains a Campaign ID:


You can find the IDs of your campaigns by clicking the three dots (...) and "View Campaign Info" on the My Campaigns page:

For example, if you added this javascript to a button, it could look like this in your HTML:

<aclass="et_pb_promo_button" onclick="SleekNote.triggerOnclick('6265aea9-8935-4aaf-8ab0-755834ff3dc0')">DOWNLOAD AWESOMENESS FOR FREE - HERE</a>

In this example, when visitors click the button, your Sleeknote campaign will show.