# Framer

Looking to collect feedback or run targeted surveys on your Framer site? With **Zigpoll**, you can embed fully customizable surveys in just a few clicks. In this guide, we’ll show you how to install the Zigpoll script using Framer’s **HTML Embed** block—no custom hosting or backend code required.

***

#### 🔧 Step 1: Copy Your Zigpoll Embed Script

1. Go to your Zigpoll dashboard.
2. Click **“Installation”**
3. Copy the JavaScript snippet:

```html
<script type='application/javascript'>
  ;(function () {
    window.Zigpoll = {
      accountId: 'YOUR_ACCOUNT_ID'
    };

    var script = document.createElement("script");
    script.type = "text/javascript";
    script.charset = "utf-8";
    script.src = "//cdn.zigpoll.com/static/js/main.js";
    script.async = true;

    document.head.appendChild(script);
  }());
</script>
```

> Replace `YOUR_ACCOUNT_ID` with your actual account ID

***

#### 🌐 Step 2: Open Your Framer Project

1. Go to Framer and open your project.
2. Navigate to the page where you want to embed the survey.

***

#### 💻 Step 3: Add an Embed Block

1. From the **Insert Menu (press `I`)**, search for **“Embed”**.
2. Drag the **Embed** block into your page.
3. Click the block to open the **Code Editor**.
4. Paste your Zigpoll embed script into the editor.
5. Click **Save**.

> 📌 *The embed block runs client-side scripts, so your Zigpoll widget will appear where the block is placed.*

***

#### ✅ That’s It!

Your Zigpoll survey is now live on your Framer site! It will trigger based on your chosen display behavior—like exit intent, delay, or scroll depth—set in the Zigpoll dashboard.

***

#### 💡 Optional Tips

* To trigger surveys **site-wide**, you can add the script on a **shared header/footer component** or duplicate the Embed block across pages.
* Want it invisible and triggered by behavior (not inline)? Add the embed script to a hidden frame and let Zigpoll’s settings handle visibility.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zigpoll.com/integrations/framer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
