← All platforms

Install guide

Install Tapestry on Any website (HTML)

Paste one line into your page template's <head>.

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. Open the template or layout file that renders the <head> of every page.
  2. Paste the snippet right after the opening <head> tag (after <meta charset>), above every other script.
  3. Keep it exactly as shown: no async or defer. Tapestry has to run before the page paints so visitors never see the original flash before a variant.
  4. Deploy, then load any page of your site. Tapestry shows the site as installed within a minute.

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.