← All platforms

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

  1. In Shopify admin go to Online Store → Themes, then … → Edit code on your live theme.
  2. Open layout/theme.liquid.
  3. Paste the snippet on the line right after the opening <head> tag.
  4. 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.