# Adobe Commerce

## Add Zigpoll to Adobe Commerce (Magento 2) with a simple script embed

You don’t need a module to run Zigpoll on Adobe Commerce. Use the built-in theme configuration (or GTM) to inject a tiny snippet and you’re done in minutes.

***

### What you’ll need

* Your **Zigpoll Account ID** (Zigpoll → Settings → Installation)
* Admin access to Adobe Commerce (Magento 2)

***

### Option A — Add globally via Theme Configuration (fastest)

1. In Admin, go to **Content → Design → Configuration**.
2. Find the row for your **Store View** → **Edit**.
3. Scroll to **Footer → Miscellaneous HTML** (you can also use **HTML Head → Scripts and Style Sheets**).
4. Paste this snippet and **Save Configuration**. Clear caches if prompted.

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

**Where to place it?**

* **Footer → Miscellaneous HTML** is safest (loads after content and avoids blocking).
* **Head → Scripts and Style Sheets** also works if you prefer head injection.

***

### Option B — Google Tag Manager

If you already run GTM:

1. In GTM, create a **Custom HTML** tag with the **global** snippet from Option A.
2. Trigger: **All Pages** or **Page View – Success Page** (e.g., Page Path matches `/checkout/onepage/success/`).
3. Publish the container.
