Shopify
Add the widget to every page of your Shopify store by pasting the snippet into your theme's theme.liquid, and tell your team which customer and cart a conversation comes from.
Last updated Tuesday, November 24th, 2026
View as MarkdownOn this page
Your store's theme draws its pages from one layout file, theme.liquid, so the snippet goes there once. A few lines of Liquid beside it can tell your team which customer is writing and what's in their cart.
Before you start
- Copy your snippet. In Settings (opens Notert in a new tab), open General (opens Notert in a new tab) under Conversations and switch Conversations on if it's off. Then open Widget (opens Notert in a new tab), press Open guide, and copy it under Add it to your site. See install the widget.
- List your store's address. Under Where it works in the install guide, check your store's domain is covered. See your store's addresses below.
- Who can edit theme code. In Shopify, you need the store owner's account, or staff permission to edit themes.
Add the snippet
- In your Shopify admin, open Online Store, then Themes.
- Beside your current theme, open its menu, the key with three dots, and choose Edit code.
- Under Layout, open
theme.liquid. - Paste your snippet just before
</body>, near the end of the file, and press Save. - Open your store. The round button appears in the corner once the page has loaded, and within moments the install guide's Check it's live shows your store's address.
Your store's addresses
The widget only answers on the websites listed under Where it works in the install guide. Add your store's own domain there, such as acme.com, which covers www.acme.com and every other subdomain.
If customers also reach your store at its myshopify.com address, add that address too, in full, such as acme.myshopify.com. The install guide won't add myshopify.com on its own, since a website covers its subdomains and the widget would then answer on every store there. See where the widget works.
Tell your team who's writing
Your store knows which customer is signed in and what's in their cart. Liquid can write that into the page for context, which sends it with the customer's next message, and your team reads it beside the conversation under "From the page". Paste this after the snippet in theme.liquid:
<script>
window.notert.context({
{% if customer %}
shopifyCustomerId: {{ customer.id | json }},
orders: {{ customer.orders_count | json }},
{% endif %}
cartItems: {{ cart.item_count | json }},
cartTotal: {{ cart.total_price | money_without_currency | json }}
});
</script>Each key is your choice, starting with a letter, and each value a short text, a number or true or false. A cart changed without a reload, as many themes' drawers do, leaves cartItems as the page was drawn until the next page. Call window.notert.context(...) again from your theme's cart code to keep it current.
Open it from your own button
To open the widget from a Contact us link rather than the round button, pick Your own button in the install guide and paste that snippet instead, which leaves out the round button. Then give any link or button the attribute, in your theme's code or in a Custom Liquid section added in the theme editor, in themes that offer one:
<button type="button" data-notert-toggle="new">Contact us</button>new opens a new conversation. See your own button for the other screens it can open.
Good to know
- The code belongs to the theme. If you switch to another theme, or install a new copy of yours, paste the snippet into its
theme.liquidtoo. An update to your theme can arrive as a fresh copy without your edits, so check the snippet is still there after one. - Checkout is Shopify's own page. It isn't drawn from your theme's layout, so the widget shows on your storefront but not at checkout.
- A password-protected store shows visitors its password page, which comes from another layout file, so the widget isn't there either until the store opens.
- Previews. Before you publish a theme, check it where the widget answers: on a theme preview at an address listed under Where it works. The console says when a page's address isn't covered.
If the widget doesn't appear on your store, open the browser's console and look for a line starting Notert:, which says why. See troubleshooting.