# Centra

## Add Zigpoll to Centra with a Simple Script Embed

Centra lets you add third-party JavaScript easily through its **custom scripts** feature. This makes installing Zigpoll straightforward — no extra apps or heavy integration work required.

***

### What you’ll need

* Your **Zigpoll Account ID** (find it in Zigpoll → Settings → Installation)
* Access to your **Centra Admin** with permission to edit scripts

***

### Step 1: Open Centra’s script settings

1. Log in to your Centra Admin panel.
2. Navigate to **Settings → Scripts** (or in some setups, **Theme → Custom Scripts** depending on your storefront integration).
3. Look for an option to **Add a new script** or edit existing **Custom JavaScript**.

***

### Step 2: Decide where to run Zigpoll

You have two main choices:

* **All Pages:** Great for sitewide polls, timed popups, and quick feedback.
* **Order Confirmation Page only:** Perfect for post-purchase surveys like NPS or product feedback.

***

### Step 3: Paste the Zigpoll embed code

In the script editor, paste:

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

Click **Save** or **Publish**.

***

### Step 5: Test the install

1. Open your Centra storefront in a private/incognito window.
2. Navigate to the targeted page(s).
3. Confirm your Zigpoll survey appears and behaves according to your Zigpoll display rules.

***

### Tips

* If your Centra site uses multiple storefronts, repeat this script setup per storefront.
* You can add **multiple Zigpoll scripts** if you want different surveys on different page types.
* For targeting specific URLs, use Zigpoll’s own **Display Rules** in your Zigpoll dashboard — no extra coding needed.

***

### Troubleshooting

* **No survey showing?** Check your Zigpoll display rules and confirm the script was published in Centra.
* **Wrong pages?** Adjust page targeting in Centra or split your scripts by condition.
* **Need richer metadata?** Centra often exposes checkout/order objects; ask your developer to push those values into `window.Zigpoll.metadata`.

***

✅ That’s it — you’ve connected Zigpoll to Centra with a lightweight script embed.\
This method works with any Centra storefront integration (custom headless, default themes, or branded templates) as long as you can add JavaScript.
