# Wix

If you're looking to collect feedback, run surveys, or engage visitors directly on your Wix site, **Zigpoll** makes it easy. This guide walks you through installing the Zigpoll embed script using Wix’s built-in **Custom Code** feature—no coding required.

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

First, head to your Zigpoll dashboard and:

1. Click Settings
2. Click **“Installation”**
3. Copy the JavaScript embed code Zigpoll provides (it will look something 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 Your Wix Dashboard

1. Go to your Wix site’s **Dashboard**.
2. In the left-hand menu, click on **Settings**.

***

#### 💻 Step 3: Add the Zigpoll Script to Your Site

1. Scroll down and find the **Custom Code** section under the **Advanced** tab.
2. Click **+ Add Custom Code**.
3. Paste your Zigpoll embed script into the field.
4. Under **Place Code in**, choose **Body - end** for most cases (Zigpoll loads asynchronously, so this is safe).
5. Choose whether you want the survey to appear on:
   * **All pages** (e.g. site-wide feedback)
   * Or a **specific page** (e.g. post-purchase survey)
6. Give it a name like "Zigpoll Script" and click **Apply**.

***

#### ✅ You’re Done!

Your Zigpoll survey will now appear on the selected pages of your Wix site. No need to modify page content or deal with complex integrations.

***

#### 💡 Pro Tip

Want to trigger the survey based on user behavior (like scroll, time on page, or exit intent)? You can configure these settings in the Zigpoll dashboard under **“Behavior”** without needing to update the code again.


---

# 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/wix.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.
