A Shopify storefront can load an external chat widget through its theme layout when the merchant has permission to edit the theme. AddFreeChat supplies the embed, and Shopify serves the page that contains it. This guide covers the storefront; it does not turn a theme script into a checkout extension or give agents automatic access to orders.
Work on a recoverable theme copy first. Theme changes affect what customers see, and an accidental edit near the document structure can damage more than chat. Use Shopify’s current theme tools and your normal review process. If your account cannot edit theme code, the store owner should assign the work to an authorised developer rather than sharing the owner’s password.
1. Set up the correct storefront domain
Create your AddFreeChat account and save its one-time access key. Add the public storefront address and complete the displayed DNS verification. The public custom domain, a Shopify preview host and another staging domain are not automatically interchangeable. Verify the origin used for the actual visitor test.
Select the website before opening Installation. Copy the generated script with its public data-site-id. That identifier belongs in the storefront source; your private account key does not. Keep the key in a password manager and use individual team invitations if more than one person needs dashboard access.
Configure a modest title and welcome message in Widget Designer. For example, “Ask us about sizing or delivery” sets a useful expectation without claiming you already know the customer’s basket. Set opening hours and offline wording, then keep text messaging enabled for the first acceptance test.
2. Identify the theme’s shared layout
In Shopify’s theme code editor, locate the layout used by the storefront, commonly layout/theme.liquid. Review the surrounding document before editing. Shopify layouts contain required Liquid output such as content_for_header and content_for_layout. Keep those objects and the existing document structure intact.
The supplied chat element can be placed before the closing body tag in the relevant shared layout. Add it once. Do not replace the whole layout with a tutorial example or remove Shopify-generated content because it appears unrelated to chat. Other storefront functions depend on the existing theme and platform output.
If your store already installs external scripts through an established integration layer, first check whether AddFreeChat is present there. Installing through two different paths creates an unclear maintenance situation and can produce duplicate launches. Choose one owner for the snippet and document it with the theme-change notes.
3. Paste the exact embed and review the change
Use the complete code from AddFreeChat’s Installation page. The example below shows its structure, with a placeholder that must be replaced by your own public website identifier:
<script async src="https://addfreechat.com/widget.js"
data-site-id="YOUR_PUBLIC_SITE_ID"></script>

Keep the script outside an existing script block, Liquid comment or JSON configuration. Preserve quotation marks and the closing tag. Review the small change in context before saving. If the theme copy uses a preview origin that is not verified for the widget, a missing launcher there does not by itself prove the final public-domain installation is wrong.
Publish through your normal theme-release process only after checking the surrounding storefront. Retain the previous theme so the website owner can recover through Shopify’s ordinary controls. Avoid combining this installation with unrelated theme clean-ups, because a small isolated change is easier to assess and reverse.
4. Keep storefront and checkout support separate
Do not assume theme.liquid controls checkout. Shopify’s current checkout extensibility model has different integration surfaces, and historical instructions that rely on checkout.liquid or old ScriptTag behaviour can be outdated. This basic AddFreeChat embed is a storefront installation and should be described that way to your team.
Customers can still ask a question before moving into checkout. Keep a clear return path to the public support page if the chat launcher is not available in a protected checkout context. Do not inject code into payment fields, ask a customer to bypass a browser warning or collect full card details through chat.
The embed also does not automatically identify the logged-in Shopify customer, read basket contents or synchronise orders. If an agent needs order details, use the store’s existing authorised process and verification policy. Explain those boundaries in team training so a visitor is not given an inaccurate impression of what the agent can see.
5. Test ordinary storefront navigation
Visit the published custom domain as a logged-out shopper. Open the homepage, a collection and a product with variants. Start with the widget minimized and then open it. Check that product options, quantity selectors and primary purchase controls remain reachable, particularly on a narrow mobile screen.
Some themes update parts of a page without a complete document reload. Navigate through several routes and confirm that the widget stays usable without multiplying. Test any cart drawer or sticky purchase bar. Use the supported launcher position and offsets to avoid collisions rather than moving the store’s essential controls out of reach.
Check consent choices and content blockers separately. A deliberately withheld script should not be confused with a theme syntax error. If a security policy blocks a resource, ask the person responsible to review the specific required origin. Do not weaken every script or frame restriction just to make one integration appear.
6. Complete a real support exchange
Keep the AddFreeChat Live Inbox open for the selected storefront. Send a harmless unique product question from the visitor page, reply from the inbox and confirm the answer appears. Follow any policy or product link included in the answer. This checks both transport and the quality of the customer’s next step.
Test the same flow at mobile width with the keyboard open. Then verify the intended offline wording. If you enable voice or video, conduct a separate consenting-device test from the embedded storefront; text success does not establish device permissions or audio playback.
Create saved replies for recurring questions, but use the store’s actual published policies. Avoid a generic “delivery tomorrow” answer when location, stock or cut-off time changes the result. Searchable widget help can point shoppers to guidance, while quick replies can help them phrase a question without automatically sending it.
Keep the installation reviewable
Record the theme name, installation file, public domain and test date. Repeat the navigation and conversation checks after a theme upgrade or replacement. If chat disappears after a new theme is published, inspect whether the shared layout still contains the embed before generating new account credentials or changing DNS.
A successful Shopify setup gives shoppers a dependable place to ask and gives the team accurate expectations about its access. Keep checkout boundaries, customer verification and order handling explicit, and let the widget serve the storefront task it actually performs.
A practical review exercise
As a practical release check, choose one product with variants and one collection that links to it. Start from the collection, navigate into the product, change a variant and open the basket drawer. Keep the widget minimized first, then repeat with it open. Send a harmless question from the product page and confirm the reply. Record the theme and domain used so a later maintainer can repeat the same journey. This is a review exercise, not evidence that checkout extensions or order synchronisation are included.
References and review notes
Platform instructions reviewed on 27 November 2026. Builder-specific steps follow the linked official documentation and still require testing on your own published site.