Install guide
Install Tapestry on Shopify
Add it to your theme's layout/theme.liquid.
The snippet
Replace SITE_KEY with your site's key, or open this guide from your site's page in Tapestry to see it filled in.
<script src="https://cdn.patchwork.run/s/SITE_KEY.js"></script>
Steps
- In Shopify admin go to Online Store → Themes, then … → Edit code on your live theme.
- Open layout/theme.liquid.
- Paste the snippet on the line right after the opening <head> tag.
- Save. Repeat for any other layout files your theme uses for storefront pages.
Shopify doesn't allow third-party scripts on checkout pages, so experiments run on storefront pages (home, collections, products, landing pages).
Check it worked
Load any page of your site. Within a minute your site's page in Tapestry switches from “Waiting for install” to “Installed”, and you can start your first experiment.