# Add Ishara to Lovable

Add the feedback widget to a Lovable app by sending one prompt with the script tag in your project’s chat, then publishing the app.

- Where it goes: The project chat, or `index.html` in Code
- Allowed domains: your own domain, plus your-app.lovable.app
- Time: about 3 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. Open your project in Lovable and send the prompt below in the chat. It contains your line and asks Lovable to add it to every page unchanged.

```
Add this script tag just before </body> in index.html (or in the root layout, if the app has no index.html), so it loads on every page. Keep it exactly as written, including data-site, and don’t change anything else.

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

3. Click **Publish**, or ask in the chat to publish the app. Visitors only see changes once you publish.
4. 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**.

## Without the chat

On a paid plan, open **Code** in the project toolbar, find `index.html`, paste the line just before `</body>` and click **Save**. On the Free plan the code editor is read-only.
If the project syncs with GitHub, GitLab or Bitbucket, you can also add the line in your own editor and push: Lovable syncs the commit back.

## Good to know

- Send the prompt as it is. If you describe the widget in your own words, the AI may write the tag from memory and leave out `data-site`.
- Apps created since 13 May 2026 render on the server with TanStack Start and may not have an `index.html`; the prompt lets Lovable pick the right file.
- If the widget doesn’t appear in Lovable’s preview, open your browser’s console: the widget names the address it was blocked on; add that host to the site’s allowed domains.
- With branded workspace URLs (Business and Enterprise), the app runs on `your-app.your-workspace.lovable.app` and its preview on `preview--your-app.your-workspace.lovable.app`: add those instead.

Checked against the official docs on 2026-11-12: [Lovable: code mode](https://docs.lovable.dev/features/code-mode), [Lovable: publish](https://docs.lovable.dev/features/publish), [Lovable: hosting](https://docs.lovable.dev/features/hosting), [Lovable: branded workspace URLs](https://docs.lovable.dev/features/branded-workspace-urls), [Lovable: Git sync](https://docs.lovable.dev/integrations/git-sync-overview).
