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
- Open the template or layout file that renders the <head> of every page.
- Paste the snippet right after the opening <head> tag (after <meta charset>), above every other script.
- 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.
- 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.