How to apply different behavior options for the same bot on different web pages

Sometimes you’d like the same bot to behave differently on the different pages of your website.

This is possible with the explicit initialization.

For example, if we want the bot to not autostart on page 1 but on page 2 keep the settings as is

On page 1 (no autostart), embed the code

<script type="text/javascript">
if (!Array.isArray(window.qbOptions)) {
    window.qbOptions = []
}
window.qbOptions.push({
    "use":"sadfasdfasdfas/wj0M8mVgeJrRW4qY",
    "autoStart": false
});
</script>
<script type="text/javascript" src="https://static.botsrv.com/website/js/widget2.ea14eec4.js" integrity="sha384-eIQOpcMrVK2La47/uGhqpJMnpRZ4rtYQpRgr1/EbeF2HLFSPGoMsegUKf2xJUcuP" crossorigin="anonymous" async defer></script>

Please note the additional autoStart option is passed

.

On page 2 (not settings override), embed the code

<script type="text/javascript">
if (!Array.isArray(window.qbOptions)) {
    window.qbOptions = []
}
window.qbOptions.push({
    "use":"sadfasdfasdfas/wj0M8mVgeJrRW4qY"
});
</script>
<script type="text/javascript" src="https://static.botsrv.com/website/js/widget2.ea14eec4.js" integrity="sha384-eIQOpcMrVK2La47/uGhqpJMnpRZ4rtYQpRgr1/EbeF2HLFSPGoMsegUKf2xJUcuP" crossorigin="anonymous" async defer></script>

Edit this page