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


---

# 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/adobe-commerce.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.
