Web Modals / Embeds
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.
1
zaius.dispatch(
2
'web',
3
'showContent', {
4
contentId: '<insert_content_id>',
5
target: {
6
selector: '<insert css selector>', // empty string for modals
7
position: 'modal' // modal | before | after | inside | replace
8
}
9
});
Copied!
A campaign must be created and launched within Zaius before this snippet will work.
Last modified 2yr ago
Copy link