Web Modals / Embeds
We are no longer updating this site. For user documentation, please go to User Docs. For developer documentation, please go to Developer Docs. If you have any questions or feedback, please submit a ticket.
To manually display web content based on your own criteria, Zaius provides an SDK method for your development team to utilize.
Using this snippet, you can trigger a modal in custom scenarios; e.g. when your customer adds an item to cart or logs in.
zaius.dispatch(
'web',
'showContent', {
contentId: '<insert_content_id>',
target: {
selector: '<insert css selector>', // empty string for modals
position: 'modal' // modal | before | after | inside | replace
}
});
A campaign must be created and launched within Zaius before this snippet will work.
Copy link