# Add Ishara to Google Tag Manager

Add the feedback widget to any site that runs Google Tag Manager with a Custom HTML tag that fires on all pages, then publish the container.

- Where it goes: Tags → New → Custom HTML, triggered on All Pages
- Allowed domains: your own domain
- Time: about 4 minutes

## Steps

1. In Ishara, open **Sites → your site → Install** and copy the line under **Add the line to your site**. Your site’s key is already in it:

```html
<script src="https://useishara.com/w.js" data-site="pk_…" defer></script>
```

2. In your Tag Manager workspace, go to **Tags → New** and choose **Tag Configuration → Custom HTML**.
3. Paste this version of the line into the HTML field. It adds the same tag from JavaScript, because Tag Manager minifies Custom HTML and Google doesn’t say whether a pasted script tag keeps its `data-site` attribute:

```html
<script>
  (function () {
    var s = document.createElement("script");
    s.src = "https://useishara.com/w.js";
    s.defer = true;
    s.dataset.site = "pk_…";
    document.head.appendChild(s);
  })();
</script>
```

4. Under **Triggering**, choose **All Pages**, then save the tag.
5. Click **Submit**, choose **Publish and Create Version**, name the version and click **Publish**.
6. Open your site. Back on the **Install** page, **Check it’s live** turns into **The widget is live** as soon as the widget loads. Then open the **Reviewer link** from the same page: only people who open it see **Leave a note**.

## Good to know

- The tag fires for every visitor unless you turn on **Require additional consent for tag to fire** in its **Advanced Settings → Consent Settings**.
- If your site sends a Content Security Policy, it has to allow both Tag Manager and the widget’s origin ([details](https://useishara.com/docs#csp)).

Checked against the official docs on 2026-11-12: [Tag Manager: Custom HTML tags](https://support.google.com/tagmanager/answer/6107167), [Tag Manager: page view triggers](https://support.google.com/tagmanager/answer/7679319), [Tag Manager: publishing and versions](https://support.google.com/tagmanager/answer/6107163), [Tag Manager: consent settings](https://support.google.com/tagmanager/answer/10718549), [Tag Manager and Content Security Policy](https://developers.google.com/tag-platform/security/guides/csp).
