# Weebly

### 🧩 How to Add the Zigpoll Script to Your Weebly Website

If you're using **Weebly** to build your website and want to collect customer feedback, run surveys, or offer interactive polls, **Zigpoll** makes it easy. With just one script, you can add a smart, behavior-based survey that works on any page of your site.

In this post, we’ll show you how to install the Zigpoll script into your Weebly site using the built-in HTML embed tools—no advanced coding required.

***

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

1. Go to your Zigpoll dashboard.
2. Click **Installation**
3. Copy the JavaScript embed code. 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>
```

> Replace `YOUR_ACCOUNT_ID` with your actual account ID

***

#### 🌐 Step 2: Log In to Weebly

1. Head to your Weebly dashboard.
2. Open the site you want to edit.
3. Click **“Edit Site”** to launch the drag-and-drop builder.

***

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

You can add the script globally (on all pages) or to a specific page. Here's how to do both:

***

**✅ Option 1: Add to a Specific Page**

1. On the page you want the survey to appear, drag a **“Embed Code”** block onto the canvas.
2. Click inside the element and choose **“Edit Custom HTML.”**
3. Paste your Zigpoll `<script>` tag into the box.
4. Click outside the box to save.
5. Publish your site.

> This will load the survey wherever you place the embed block.

***

**✅ Option 2: Add Site-Wide Script**

Want the Zigpoll script to appear on **all pages**, like in the footer?

1. Go to **Settings → SEO** in the Weebly editor.
2. Scroll to the **Footer Code** section.
3. Paste your Zigpoll embed script there.
4. Click **Save**, then **Publish** your site.

> 📌 This method is ideal for global surveys, exit-intent polls, or time-based displays.

***

#### ✅ That’s It!

Zigpoll will now load on your Weebly site, either on a specific page or across the entire site—depending on your setup. You can control when it appears (scroll, time delay, exit intent, etc.) directly from the **Zigpoll dashboard**, no need to update the code.

***

#### 📝 Bonus Tip

Want to test the display behavior? Use Zigpoll's **Preview Mode** to simulate delays, scroll triggers, or exit detection before going live.
