Skip to content

Add Aliendesk to Shopify

Paste one snippet into your theme's layout file and the widget shows on every page of your store.

Install guide

What you need

  • An Aliendesk account
  • A Shopify staff account that can edit themes

Install it

  1. Step 1: Copy your snippet

    In Aliendesk, open Settings → Live chat widget and copy the script tag under Install. It already contains your brand key.

  2. Step 2: Back up your theme

    In your Shopify admin, go to Online Store. Next to your current theme, open the … menu and choose Duplicate, so you can roll back if needed.

  3. Step 3: Open the code editor

    Open the … menu next to your current theme again and select Edit code. In the layout folder, open theme.liquid (or press Cmd/Ctrl + P and type theme.liquid).

  4. Step 4: Paste the snippet before </body>

    Find the closing </body> tag near the end of the file, paste the snippet just above it, and click Save.

    Install snippet
    <script src="https://widget.aliendesk.io/loader.js" data-brand="YOUR_BRAND_KEY" data-api="https://app.aliendesk.io" async></script>
  5. Step 5: Allow your domain

    Back in Settings → Live chat widget, add your website's domain under Allowed domains, both your myshopify.com address and your own domain. The widget then only runs on your own sites.

  • If you switch to a different theme later, add the snippet to the new theme too.
  • Order status lookups from your Shopify store are coming soon. Until then, AI actions can check orders through your own APIs.

Check it works

  1. Open your website in a private window. The chat launcher appears in the corner once the page has finished loading.
  2. Open it and ask something your website answers. The reply shows the page it came from.
  3. In Aliendesk, open your inbox. The conversation is already there.

Not ready to touch your site yet? Use Open test page in Settings → Live chat widget to try the widget on a plain page first.

Troubleshooting

The widget doesn't show up
Open your live site in a private window and wait for the page to finish loading: the widget loads after your page so it never slows it down. Then view the page source and search for loader.js to check the snippet made it onto the published page, with your brand key in data-brand.
It works on one domain but not another
Add every domain the widget runs on, including www, staging and preview domains, under Allowed domains in Settings → Live chat widget. While you test, you can leave the list empty to allow any site.
Caching or optimisation tools
Clear your site and CDN cache after adding the snippet. If a plugin or service combines, minifies or delays JavaScript, exclude widget.aliendesk.io/loader.js from it.
Ad blockers and privacy extensions
Some browser extensions block chat widgets. Test in a private window with extensions turned off before changing anything else.

Still stuck? Ask in the chat, or email support@aliendesk.io. To pass signed-in users or listen for widget events, read the developer docs.

Platform steps checked against Shopify Help: edit theme code on 18 October 2026. Menus can move; follow the platform's own docs if they differ.

Beam it up

Put an AI agent on your website today

Billed monthly. No lock-in.