Theme editor
The easiest way to add the widget without editing code is through the theme editor.1
Open the theme editor
In your Shopify admin, go to Online Store → Themes. Click Customize on your active theme.
2
Add a Custom Liquid block
In the left panel, click Add section (or select an existing section). Choose Custom Liquid from the list.
3
Paste the script
Paste the script into the Custom Liquid field.
4
Save
Click Save. The widget will appear on your storefront immediately.
theme.liquid (all pages)
To load the widget across your entire store, edit your theme’stheme.liquid file directly.
1
Open the code editor
In your Shopify admin, go to Online Store → Themes. Click the three-dot menu next to your active theme and select Edit code.
2
Open theme.liquid
Under the Layout folder, click theme.liquid.
3
Add the script
Find the closing
</body> tag and paste the script directly before it.layout/theme.liquid
4
Save
Click Save. The widget will now load on every page of your store.