Widget and websites

How to install the AckReply chat widget on your website

Copy the AckReply install snippet from Settings > Widget > Install and paste it before </body> on HTML, WordPress, Shopify, Webflow, Next.js and more.

8 min read
On this page
  1. What does the AckReply install snippet look like?
  2. Where do I find my AckReply install snippet?
  3. How do I install the AckReply widget on a plain HTML site?
  4. How do I install the AckReply widget on WordPress?
  5. How do I install the AckReply widget on Shopify?
  6. How do I install the AckReply widget on Webflow?
  7. How do I install the AckReply widget on Wix, Squarespace or another site builder?
  8. How do I install the AckReply widget on React, Next.js, Vue, Nuxt, Astro or SvelteKit?
  9. How do I check that the AckReply widget is installed correctly?
  10. What happens when the AckReply widget loads on a new domain?
  11. How do I install the AckReply widget on more than one website?
  12. What optional settings can I add to the AckReply snippet?
  13. Can I share an AckReply chat link instead of installing the widget?
  14. Can I control the AckReply widget with JavaScript?
  15. How do I remove the AckReply widget from my website?
  16. Common problems when installing the AckReply widget
  17. Related articles

To install the AckReply chat widget, copy your install snippet from Settings > Widget > Install in the AckReply dashboard and paste it into your website just before the closing </body> tag on every page. The snippet is a single script tag that already contains your workspace ID, and it works the same way on plain HTML, WordPress, Shopify, Webflow, Next.js and other platforms.

What does the AckReply install snippet look like?

The AckReply install snippet is one self-contained script tag:

<script src="https://app.ackreply.com/widget/loader.js" data-workspace-id="YOUR_WORKSPACE_ID" async></script>
  • src loads the small AckReply widget loader from app.ackreply.com.
  • data-workspace-id tells the widget which AckReply workspace the chats belong to. Your real snippet already has this filled in.
  • async means the script loads in the background and does not slow down your page.

You do not need a second script block or any setup code. The tag carries your workspace ID, plus the optional website ID and position. Colors, greeting, AI settings and everything else load from AckReply, which is why the same line works on frameworks that move or bundle inline scripts.

Where do I find my AckReply install snippet?

  1. Log in at https://app.ackreply.com.
  2. In the left sidebar, open Settings > Widget. (Only workspace owners and admins can open this page.)
  3. The Install tab opens first. The card Install snippet says “Paste this code before on every page of your site.”
  4. Under Your platform, pick your website platform. The code box and the placement hint below it change to match.
  5. Click Copy. The button changes to Copied!.

You can also copy the snippet from the setup checklist on the Dashboard (step 3, Copy snippet), or from Settings > Websites by clicking Embed next to a website.

How do I install the AckReply widget on a plain HTML site?

  1. Open each page template (or your shared footer include) in your editor.
  2. Paste the snippet just before </body>.
  3. Upload or publish the changed files.
  4. Open your site in a browser and look for the chat bubble in the bottom-right corner.

If your site has one shared footer file used by every page, you only need to paste it once.

How do I install the AckReply widget on WordPress?

The AckReply install screen gives this placement: Appearance > Theme File Editor > footer.php, paste the snippet before </body>. Alternatively, use any WordPress plugin that lets you add scripts to the site footer and paste the snippet there.

AckReply does not have its own WordPress plugin. You only need the one script tag.

How do I install the AckReply widget on Shopify?

The AckReply install screen gives this placement: Online Store > Themes > Edit code > theme.liquid, paste the snippet at the bottom, before </body>. Save the file. The widget then appears on every page of your store that uses that theme.

AckReply does not have a Shopify app. You only need the one script tag.

How do I install the AckReply widget on Webflow?

The AckReply install screen gives this placement: Site Settings > Custom Code > Footer code. Paste the snippet there and publish your site. One paste applies to the whole site.

How do I install the AckReply widget on Wix, Squarespace or another site builder?

Any site builder that lets you add custom code to the page will work. Look for a setting called something like “custom code”, “code injection” or “footer code”, add the AckReply snippet so it loads on all pages, and publish. If your builder only allows code in the page <head>, that also works: the widget waits for the page body to load before it appears.

AckReply does not have dedicated apps or step-by-step guides for these builders.

How do I install the AckReply widget on React, Next.js, Vue, Nuxt, Astro or SvelteKit?

Pick your framework in the Your platform list on Settings > Widget > Install to get a ready-made code block. In short:

  • Next.js (App Router): paste the tag inside <body> in app/layout.tsx. It is plain HTML, so no next/script wrapper is needed.
  • React (single-page app, for example Vite): paste the tag in index.html before </body>.
  • Vue (single-page app): paste the tag in index.html before </body>.
  • Nuxt: paste the tag in app.vue (or app/app.vue in Nuxt 4), inside the <NuxtLayout>.
  • Astro: paste the tag inside <body> in your base layout, for example src/layouts/BaseLayout.astro. Astro leaves the tag as-is.
  • SvelteKit: paste the tag at the end of your layout markup in src/routes/+layout.svelte.

The widget notices page changes in single-page apps (route changes without a full reload), so visitor page tracking keeps working as people move around your app.

How do I check that the AckReply widget is installed correctly?

  1. Open a public page of your website in a normal browser window (not the site builder’s preview).
  2. Look for the round chat bubble in the bottom-right corner (or bottom-left, if you set that on the snippet).
  3. Click it and send a test message.
  4. In the AckReply dashboard, open Inbox. Your test conversation should appear.

The first time the widget loads on a real page, the Dashboard setup checklist marks Install the widget as complete. If you are already in the browser’s developer console, window.AckReply.version shows the loader version.

What happens when the AckReply widget loads on a new domain?

When the AckReply widget loads on a domain for the first time, AckReply creates a website record for that domain in your workspace and shows it in Settings > Websites with the status Pending approval. The widget works while the website is pending. Click Accept to mark it as active.

AckReply treats www.example.com and example.com as the same website. A different subdomain, such as shop.example.com, is a separate website.

The widget does not create website records for localhost, IP addresses or AckReply’s own domains. You can still test the widget on a local copy of your site; conversations simply are not linked to a specific website.

See Websites and website groups for what websites control.

How do I install the AckReply widget on more than one website?

Use the same snippet on every website in your workspace. AckReply detects which website each chat comes from by the page’s domain, and uses that website’s widget settings and AI knowledge.

If you want to pin a snippet to one specific website, choose that website in the Customization Scope selector on Settings > Widget. (With one website, this selector is under Advanced.) The copied snippet then includes an extra data-website-id="..." attribute. A pinned snippet always uses that website’s settings, whatever domain it is on.

What optional settings can I add to the AckReply snippet?

The AckReply snippet supports these optional attributes on the script tag:

AttributeWhat it does
data-website-idPins the widget to one website in your workspace. Added for you when you pick a website scope.
data-positionbottom-right or bottom-left. Sets which corner the chat bubble sits in, and overrides the Widget Position setting in the dashboard. Leave it out to use the dashboard setting.

Example with the bubble on the left:

<script src="https://app.ackreply.com/widget/loader.js" data-workspace-id="YOUR_WORKSPACE_ID" data-position="bottom-left" async></script>

Colors, icons, position and other appearance settings are set in the dashboard, not on the tag. You only need data-position to force a corner on a specific page. See How to customize the AckReply chat widget.

Yes. Under Settings > Widget > Install > Advanced, the Chat Window URL card gives a direct link that opens the AckReply chat in a browser tab. Choose a website under Select Website to tie the link to that website’s settings. You can put this link in emails, social media profiles or a “Contact us” button. Conversations from the link appear in the same Inbox.

Can I control the AckReply widget with JavaScript?

Yes. After the widget loads, window.AckReply offers open(), close(), identify() and logout(). For example, you can open the chat from your own “Chat with us” button with window.AckReply.open(). To pass logged-in user details to AckReply, call identify() with an object whose ID field is user_id. See Integrations and API for the full JavaScript API and signed visitor identity.

How do I remove the AckReply widget from my website?

Delete the AckReply script tag from your site (or from the footer code setting where you pasted it) and publish. The bubble stops appearing as soon as the page is reloaded. Your conversations stay in AckReply.

To show the widget on only some pages, add the snippet only to the pages where you want it.

Common problems when installing the AckReply widget

  • The bubble does not appear. Check that the snippet is on the published page (view the page source and search for loader.js), that the data-workspace-id value matches the one on Settings > Widget > Install, and that nothing (such as an ad blocker or a cookie-consent tool that blocks scripts) is stopping app.ackreply.com from loading.
  • Content Security Policy errors in the browser console. If your site sends a Content-Security-Policy header, allow https://app.ackreply.com for scripts (script-src) and frames (frame-src).
  • The widget appears in the site builder preview but not on the live site. Publish the site after adding the code.
  • The widget loads in <head> from a tag manager. That is fine. The widget waits until the page body exists.
  • The setup checklist still says “Install the widget”. That step completes only when the widget loads on a real page and registers a visitor. Visit your live site once.
  • The bubble is in the wrong corner. Set Widget Position on the Style tab of Settings > Widget. If the bubble still does not move, check the script tag for a data-position attribute, which wins over the dashboard setting.
  • The bubble does not appear on one website, but works on others. That website may be paused. Check its status in Settings > Websites and click Activate.
  • “Domain already claimed” or an unknown pending website. See Websites and website groups.

For more fixes, see Troubleshooting.

Was this article helpful?