Manual Campaigns

Manual Campaigns

HTML
<button onclick="SP.manualPopup(POPUP_ID)">Get a discount</button>

Make sure to replace POPUP_ID with the ID of the Overlay.

Campaigns are usually shown by their triggers, set in the panel. You can also show one from your own code, e.g. after a click on a button.

  • SP.manualPopup(popupId) - show the Overlay with the given ID
  • SP.manualTopbar(topbarId) - show the Bar with the given ID
  • SP.manualNotify(notificationId, response) - show the Trust Info notification with the given ID, with the event data passed in response instead of the data collected by Trustisto. Meant for demos and previews.

The campaign must be published and active: a campaign that is disabled or not published is not in the website configuration, and the call only logs a message.

To open another campaign from inside a template, use the openPopup and openTopbar CTA types.

To send a form from your website to a campaign, see Forms.