Add Groundly to your Shopify site.
Your AI website assistant, live on your Shopify site in a few minutes. You’ll need a Groundly account and a Shopify store on any plan.
Installing on Shopify.
Menu names can differ slightly between versions and themes, but the steps stay the same.
Get your script from Groundly
In Groundly, add your website with its name and domains, and choose its industry. Then open the website’s Settings and copy the script from the Script section. It looks like this, with your own website key:<script src="https://widget.groundly-ai.com/v1/widget.js" data-website-key="wk_your_website_key" async></script>
Open your theme code
In Shopify admin, go to Online Store → Themes. Next to your current theme, click the ⋯ button, then Edit code.
Open theme.liquid
Under Layout, open theme.liquid. This file wraps every page of your store.
Paste the script before </body>
Find the closing
</body>tag near the bottom of the file and paste your Groundly script on the line just above it.Save
Click Save. The assistant appears on your storefront straight away.
Check it on your live site
Open your website in a private browser window and look for the chat button. Ask it a question about your business. Until you’ve chosen pages in Knowledge, it has nothing to answer from, so do that next.
Changing themes later? The script lives in the theme, so add it again to theme.liquid in any new theme before you publish it.
Shopify details.
Domains
Add your store’s own domain, such as example.com. If shoppers also reach the store at yourstore.myshopify.com, add that as a domain too.
Checkout
Shopify’s checkout doesn’t load theme code, so the assistant shows on your storefront pages but not inside checkout.
It won’t clash with your theme
The assistant adds one element to your page and keeps its styles separate, so your theme’s fonts and colours stay untouched. It loads after your page, so it doesn’t slow it down.
Using something else?
Groundly works on any website you can add a script to.
If something’s not right.
Something else on your mind? Email hello@groundly-ai.com and we’ll answer.
Start freeThe chat button doesn’t appear
Check that the domain in your browser’s address bar is one of the website’s domains in Groundly (www. is covered automatically, other subdomains aren’t), that the page loads over https://, and that the script is before </body> rather than in <head>. Then clear any cache and reload.
It appears on one address but not another
Each address needs its domain in Groundly. Add staging, shop or builder addresses (such as yourstore.myshopify.com) as extra domains in the website’s settings.
We added the script twice
That’s fine: the second copy does nothing. Remove it when you can to keep your code tidy.
Our site has a Content Security Policy
Allow https://widget.groundly-ai.com for scripts, connections and fonts. The script, the assistant’s answers and its fonts all come from there. If it still doesn’t appear, email hello@groundly-ai.com.