# Squarespace

Want to gather feedback, run polls, or trigger a survey on your Squarespace site? **Zigpoll** makes it easy to embed beautiful, behavior-driven surveys without disrupting your design. In this quick guide, we’ll walk through how to install the Zigpoll script on your site using Squarespace’s built-in **Code Injection** settings.

***

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

1. Go to your Zigpoll dashboard.
2. Click **“Installation”**
3. Copy the full JavaScript snippet. It looks like this:

```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>
```

> Be sure the `YOUR_ACCOUNT_ID` is set to your actual account ID.

***

#### 🌐 Step 2: Open Your Squarespace Settings

1. Log in to your Squarespace account.
2. Select the site you want to edit.
3. In the left sidebar, go to **Settings** → **Advanced** → **Code Injection**.

***

#### 💻 Step 3: Paste the Zigpoll Script

1. Under the **Footer** field (not Header), paste your Zigpoll embed script.
2. Click **Save** at the top-left corner.

> 📌 *Zigpoll loads asynchronously and doesn’t block your page, so placing it in the footer is safe and efficient.*

***

#### ✅ That’s It!

Zigpoll is now live on your Squarespace site. You’ll see your survey appear based on the display rules you’ve set—like time on page, scroll depth, or exit intent.

***

#### 💡 Optional: Page-Specific Installation

If you only want the Zigpoll survey to show on certain pages:

* Don’t use **Code Injection**.
* Instead, open a **Page**, click **Edit**, then:
  1. Add a **Code Block**.
  2. Paste the Zigpoll script inside.
  3. Click **Apply** and then **Save**.

This way, Zigpoll will only load on that page.
