Embed a legal policy page on your Squarespace site
You can embed a legal policy page directly into your Squarespace marketing site by adding a single script tag. The script is self-hosted and does not require a cross-origin request, so it avoids CORS issues.
Before you start
Decide which legal document you want to embed and confirm it is published. Currently only the cookie policy and sub-processors pages are available.
Add the embed to a Squarespace page
Open the Squarespace page editor for the page that will display the legal document.
Add a code block where you want the document to appear. Paste the following HTML, replacing
cookie-policywith the document slug you want to embed:<div id="ev-legal-cookie-policy"></div>Open the page’s Settings > Advanced > Page Header Code Injection and paste the script tag:
<script src="https://www.eventuallyticketing.com/legal/cookie-policy.js"></script>Save the page and publish the site.
Visit the live page and confirm the legal document appears inside the div.
What to expect
The script waits for the page to finish loading before injecting the rendered HTML. If the target div is missing, the browser console logs a warning:
Eventually legal embed: no element with id ev-legal-cookie-policy found on this page
The injected content inherits the host page’s typography and includes a link to the standalone version of the document.
Available embed URLs
Document | Script URL | Target div ID |
|---|---|---|
Cookie Policy |
|
|
Sub-processors |
|
|
The embed is cached publicly for five minutes. If you update the document, changes may take up to five minutes to appear on the marketing site.
What's next
Learn how the legal pages are published and how frontmatter controls visibility in How legal policy pages are published, or check the current URLs and statuses in Legal policy page reference.