Getting JavaScript Trigger

Each Sleeknote campaign has a unique ID and a JavaScript snippet. If you want to trigger a campaign manually, you can call that piece of JavaScript from any button, link, or page on your site.

Here’s how you find the JavaScript snippet for each of your campaigns:

  1. Visit your Sleeknote Dashboard and go to the “My Campaigns” tab.
  2. Find the campaign you want to trigger manually, click the three dots (...) and press “View Campaign Info”:

3. Click “Copy to Clipboard” next to “JavaScript Trigger” and your code snippet will be copied.

Paste this JavaScript snippet to your website, where relevant, and use it as a manual trigger.

⏰ Reminder: For your manual trigger to work, you need to implement your tracking code and activate your campaign as usual.