> For the complete documentation index, see [llms.txt](https://help.calcumate.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.calcumate.co/calculator-setup-and-customization/how-to-integrate-calcumate-to-framer.md).

# How to integrate Calcumate to Framer

**Step 1: Create a Calculator**

* Start by creating a new calculator from your Calcumate dashboard (login [here](https://calcumate.co/login) if you haven't already).
* You can also copy an existing calculator if you've already set one up before.

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2FG3EjJF2C82AFOK3VWFon%2Fimage.png?alt=media&amp;token=db4a8d9f-dcc1-457c-bdc3-f213a796b397" alt=""><figcaption></figcaption></figure>

**Step 2: Publish the Calculator**

* Go to the Confirm step.
* Click Publish to generate the code snippet.

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2FGulXqZ49w1lj6jzwr3AE%2Fimage.png?alt=media&amp;token=0a216472-1c16-4c2e-971c-ace0368800ab" alt=""><figcaption></figcaption></figure>

**Step 3: Copy the generated code snippet**

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2F1FYUYm6g0o49gnls6Eko%2Fimage.png?alt=media&amp;token=60830d49-15ce-4a31-8d20-18fc6d786d2f" alt=""><figcaption></figcaption></figure>

## Approach 1

**Step 4: Add the embed**

* Go the insert menu, in the "Utility" category find the "Embed" item and drag it to the website.

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2FsweIRC2hc08gnoVmqmJJ%2Fimage.png?alt=media&amp;token=1743d05d-f136-48cd-9552-c409b4e68198" alt=""><figcaption></figcaption></figure>

**Step 5: Add the generated snippet to the embed**

* Select the embed item
* Scroll down on the properties and find the "embed" section
* Click on the HTML button
* Paste the code snippet

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2FSNchnlBJZ1qauJ9hjVxl%2Fimage.png?alt=media&amp;token=00149b6f-c825-4eb3-92e1-c11c903ff323" alt=""><figcaption></figcaption></figure>

**Step 6: Add a style to the code snippet**

* In the \<div> tag, insert the property style with this value

`style="width: calc(100vw - 40px);max-width: calc(100vw - 40px);"`

The code snippet should look like this now:

<pre class="language-html"><code class="lang-html"><strong>&#x3C;div
</strong>  id="calcumate-root"
  data-integration="ready-layout-272806.framer.app"
  data-integration-2=""
  data-ref="AQICAHhReAOexSsfBeJ/FMNVdjLFzyMEhuepXqwRfRaqckbrnAHuaOBBjQ0oYfYSZfPPpQhwAAAAgzCBgAYJKoZIhvcNAQcGoHMwcQIBADBsBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDJFfnjyHj8ipzqKqhAIBEIA/fZFsqE7ThBq1XcFkpUmHAa4sm07+g98Vlyv0XHqZdaAvxWx+GDSwGfVXySu6deP1uBaczPeFHD6ayG6d4N3P"
  data-int="112a234c-0ca3-4f07-981c-a1845d0bfa7c"
  style="width: calc(100vw - 40px);max-width: calc(100vw - 40px);"
>&#x3C;/div>
&#x3C;script defer src="https://production.calcumate.co/static/js/main.js">&#x3C;/script>
</code></pre>

**Step 7: Publish/Update your website**

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2FIpmHlJ3RecqLGimA0Dkf%2Fimage.png?alt=media&amp;token=fff3ebd1-e6c9-4581-8c8d-e58c5ae12343" alt=""><figcaption></figcaption></figure>

## Approach 2

**Step 4: Add the code to framer**

* On the edit view, click on the settings button

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2F8TYFCQ81uJBKRu5HbZH0%2Fimage.png?alt=media&amp;token=f82e6b87-3722-4e51-8f71-b7bc6c02a945" alt=""><figcaption></figcaption></figure>

* Select the page in which you want to embed the calculator and scroll down to the "custom code" section and paste in "End of \<body> tag" or click in the "show advanced option" and paste it in "Start of \<body> tag".

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2FZY0ZMkfMaU7FH1jCPn0I%2Fimage.png?alt=media&amp;token=fd126eea-5cf9-4e14-bdb4-12f5e907665d" alt=""><figcaption></figcaption></figure>

**Step 4: Publish/Update your website**

<figure><img src="https://2142607565-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTTkW3ulcBeT90bhskPiJ%2Fuploads%2Fjkmvt5YRC9Ko6aWtvXwP%2Fimage.png?alt=media&amp;token=daefb504-822c-4706-af08-fb9d5f3dfc08" alt=""><figcaption></figcaption></figure>
