> Documentation index: https://fundchart.io/docs/llms.txt

# How to embed fund performance charts in Squarespace

Add live fund charts to Squarespace with a Code block.

## What investors find today

Squarespace sites look polished out of the box, and the fund page on one is usually a PDF link. FundChart puts the live fund page there instead: facts, returns against the benchmark, exposure, holdings, monthly returns, in your colours and current to last month-end, drawn from the factsheet or workbook you already produce. In Squarespace it is one Code block.

## Before you start

- A FundChart workspace with the fund published. In the fund's review, open the **Layout** step, press **Layout**, open the **Embed code** card and **Copy** "Full fund page": a script line and a `<fundchart-page>` tag.
- A Squarespace plan that runs code in Code blocks (a paid plan; on a plan that does not, the block shows nothing on the published site).
- Your site's domain under Settings → API & agents → allowed domains (the `squarespace.com` address while you test, your own domain at launch), if you want the token to draw only on your sites.

## Add a Code block

1. Open the page in the editor, press **Edit**, then **Add Block** where the fund page should go, and choose **Code**.
2. In the block's **Content** tab, leave **Mode** on **HTML**, keep **Display Source Code** off, and replace the sample with the two lines from the Embed code card.

![A Squarespace Code block's Content tab: Mode HTML, Display Source Code off, the script line and the fundchart-page tag pasted in.](/guides/squarespace/1-code-block-ui.png)

```html
<script async src="https://embed.fundchart.io/e.js"></script>
<fundchart-page token="fcp_YOUR_TOKEN" fund="YOUR_FUND_ID" name="your-fund"></fundchart-page>
```

3. Stretch the block to the section's full width. Its height in the editor does not matter: on the published site the fund page sizes itself and the section grows with it.
4. Save and publish, then open the page. In the editor the block may show only a placeholder; the published page shows the fund page.

![The published Squarespace page with the fund page under the site's header.](/guides/squarespace/2-published.jpg)

![The same page on a phone.](/guides/squarespace/3-published-phone.jpg)

## A fund centre, or one chart

The same Code block takes the other two tags. For a Funds page, `<fundchart-center token="fcp_YOUR_TOKEN" link-template="/funds/{slug}"></fundchart-center>` lists every published fund, each row a link to its page on your site. For one chart, `<fundchart-widget type="perf-chart" token="fcp_YOUR_TOKEN" fund="YOUR_FUND_ID"></fundchart-widget>`. On a page with several Code blocks, the script line is needed only once.

## Matching your site

The look (Editorial or Classic), the brand colour, the font and the sections come from the layout saved in FundChart. On a dark section add `background="inherit"` to the tag and choose the Classic look; the full list of attributes is in the [developer docs](https://fundchart.io/docs/reference/embedding).

## Month-end

Nothing changes in Squarespace and nothing needs publishing. Upload next month's factsheet in FundChart, review, approve; the page on your site shows the new month within a minute.

## If it does not show

- Nothing on the published page: the plan does not run code in Code blocks, or the script line is missing. Check both.
- The code itself shows on the page: **Display Source Code** is on. Switch it off.
- A dashed box reading "this fund isn't published yet, or the token is wrong": publish the fund, or copy the tag again from the Embed code card.
- "domain not allowed for this token": add the `squarespace.com` address and your own domain under allowed domains.
- The phone layout on a desktop: the block is narrow. Stretch it to the section's full width.

---
Source: https://fundchart.io/docs/embed/squarespace
Updated: 2026-11-08
