SquaHelp center · Embedding

Calculators on Squarespace,
in five steps

Add a Code block, paste your snippet, publish, and test. This guide covers the clicks, the common snags and how to confirm leads arrive.

In short

How do I add a calculator to Squarespace?

Add a Code block on the page, paste the snippet from your calculator's Embed tab, and publish. The calculator loads from our servers, stays style-isolated from your theme, and works on mobile. No plugin is required.

Steps

Embedding on Squarespace

  1. Edit the page

    Open the page and click Edit.

  2. Add a Code block

    Click an insert point, choose Code from the block menu.

  3. Paste the snippet

    Paste it into the Code block and make sure the mode is HTML, with 'Display source' off.

  4. Save and view the live page

    Code blocks often don't run scripts in the editor; check the published page.

  5. Test on a phone

    Run the calculator once on mobile.

Snippet

The snippet you'll paste

Copy the real one from the app; it contains your embed key.

<div data-calculator="rmd" data-key="YOUR_EMBED_KEY" data-mode="inline"></div>
<script src="https://app.numbersforclients.com/cf.js" async></script>

Illustrative example. The loader script needs to appear only once per page.

Fixes

Common problems and fixes

ProblemFix
Code block shows a warning about scriptsSome Squarespace plans limit JavaScript in Code blocks; check your plan, or use the framed mode.
Calculator only shows when logged outSome scripts are disabled in the editor; test in a private window.
Spacing looks tightAdd a Spacer block above and below.
Note

Squarespace plans differ in whether custom JavaScript runs in Code blocks. If yours doesn't allow it, link a button to a page that hosts the calculator instead.

FAQ

Squarespace embedding questions

Showing 8 of 8
  • Do I need a plugin or app for Squarespace?

    No. The snippet is plain HTML and JavaScript, so any block or element that accepts custom code works.

  • Where do I get my snippet?

    In the app, open the calculator, go to the Embed tab and copy the snippet for the display mode you want.

  • Can I add several calculators to one page?

    Yes. Paste each calculator's placeholder; the loader script only needs to appear once per page. Or use a widget.

  • The calculator doesn't appear. What should I check?

    Confirm the code block allows JavaScript, that you published (not just saved) the page, and that the calculator is active in your account. Then try the framed mode.

  • Will the calculator use my site's fonts?

    No, it's style-isolated. Set fonts and colors in the app so it matches.

  • Does the calculator work on mobile?

    Yes, it's responsive. Preview the page on a phone before announcing it.

  • How do I test lead capture?

    Submit the form with your own details and check that the contact appears in the app and the email arrives.

  • Can I put the calculator in a popup instead?

    Yes, copy the popup button or floating snippet from the Embed tab.

Next entry

Paste once, answer all season

Start free and put your first calculator on your Squarespace site today.

Firm and Network plans include a 14-day trial. Cancel before it ends and you pay nothing.