FitMyType Docs

Getting started

FitMyType shows shoppers the size that fits them, right on your product page. This page shows the smallest setup: one script and one element.

1. Add the size recommender to a product page

Paste this where the size button should appear. Replace clientId with the id from your back-office and productId with the product reference used in your catalogue feed.

<script type="module" src="https://recommender.fitmytype.com/sr.js"></script>

<fmt-size-recommender clientId="625" productId="YOUR-PRODUCT-ID" language="en"></fmt-size-recommender>

The script loads in the background, so it never blocks the rest of your page.

2. Optional: use the SDK directly

If your theme builds its own size button, load the SDK and set it up with your client id. It exposes window.FitMyType.

<script src="https://sdk.fitmytype.com/sdk.js" async></script>
<script>
  window.addEventListener("load", () => window.FitMyType.setup(625));
</script>

3. Check your domain

The widget only answers on the shop domains you added in the back-office. If nothing shows up, check that the page's domain is in that list.