Install target
One v1 widget script in the app shell
Install AnswerLattice
Theme-level script injection guidance for Shopify-style storefronts.
One v1 widget script in the app shell
Path, title, feature, workflow, role, locale
Loaded, origin allowed, route allowed, context received
Install verification
Script, allowed origin, blocked route, safe context, and fallback checks are visible before product users rely on support.
Add the v1 widget script and safe context adapter.
Verify origin, route, context, and fallback readiness.
Go live only after the runtime checks pass.
<!-- Add once in the theme layout, before </body>. Replace the key with a theme setting or environment-backed value. -->
<script
src="https://answerlattice.com/widget/v1/answerlattice-widget.js"
data-answerlattice-key="{{ANSWERLATTICE_WIDGET_KEY}}"
async
></script>
<script>
window.AnswerlatticeWidget?.page({
path: window.location.pathname,
title: document.title,
feature: 'storefront',
workflow: 'customer_support',
role: 'customer',
locale: Shopify?.locale || navigator.language || 'en'
});
</script>