Skip to content

Services per page

To hide Shop Agent placements at checkout and keep Purchase Tracking available, set window.neocomConfig before the Global script.

Disable Shop Agent placements at checkout
<script>
const isCheckout = /^\/checkout(?:\/|$)/.test(window.location.pathname);
window.neocomConfig = {
services: {
shopAgent: !isCheckout,
pdpSuggestions: !isCheckout
}
};
</script>

Use the checkout path for your shop. If you also need to suppress Quiz placements there, set both quiz and prompt to false.

Option Effect when set to false
enabled Skips automatic placement initialization. Explicit API calls can still run.
services.shopAgent Disables Shop Agent bubble, inline and explicit AskAgent calls.
services.pdpSuggestions Disables product-page suggestions, which can otherwise open a conversation.
services.quiz Disables inline quizzes and Quiz JavaScript triggers.
services.prompt Disables the Quiz prompt.

The script reads the configuration once at startup. You can supply an object or a function that returns one. In a single-page app, changing the value during navigation does not remount or remove the placement.

These options control placement. Use Consent for cookie and chat choices. For Quiz prompt targeting by URL, see Prompt.