# Add Ishara to Replit

Add the feedback widget to a Replit app by asking Agent to add the script tag to your HTML, then publishing the app on replit.app.

- Where it goes: Agent chat, or your main HTML file in Files
- Allowed domains: your own domain, plus your-app.replit.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. In your Replit project, send the prompt below to Agent. Or open **Files** in the workspace sidebar and paste the line yourself, just before `</body>` in your app’s main HTML file.

```
Add this exact script tag to the main HTML template, just before </body>, so it loads on every page. Keep all its attributes as written and don’t change anything else.

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

3. Open **Tools → Replit Cloud → Publishing** and click **Publish**, or republish if the app is already live.
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**.

## Good to know

- The preview in your workspace isn’t the published app: visitors only get the widget after you publish.
- The workspace preview runs on a `replit.dev` address that’s private by default and can change each time you reopen the app. To try the widget there, add the address you’re on to the allowed domains.
- A static site has an `index.html`; full-stack apps may use a layout template instead, which the prompt leaves to Agent.
- 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`.

Checked against the official docs on 2026-11-12: [Replit: publishing](https://docs.replit.com/features/publishing/overview), [Replit: development URLs](https://docs.replit.com/core-concepts/project-editor/app-setup/development-urls), [Replit: navigate your workspace](https://docs.replit.com/build/code/navigate-your-workspace), [Replit: deployments](https://docs.replit.com/learn/projects-and-artifacts/replit-deployments).
