IsharaBeta
Install guides (31)

Add Ishara to Nuxt

Add the feedback widget to a Nuxt 3 or 4 app with one script entry in app.head in nuxt.config.ts, placed at the end of the body.

Where it goes
app.head.script in nuxt.config.ts
Allowed domains
Your own domain (set when you add the site)
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 nuxt.config.ts, add the script to app.head.script. Each property becomes an attribute of the tag, and tagPosition: 'bodyClose' puts it at the end of <body>:

    nuxt.config.ts
    export default defineNuxtConfig({
      app: {
        head: {
          script: [
            {
              src: 'https://useishara.com/w.js',
              defer: true,
              'data-site': 'pk_…',
              tagPosition: 'bodyClose',
            },
          ],
        },
      },
    })
  3. Build and deploy the app.

  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.

With useHead() instead

You can add the same script with useHead() in your root component: app/app.vue in Nuxt 4, app.vue in Nuxt 3. Use the root component, not a page, so it loads everywhere.

app/app.vue
<script setup lang="ts">
useHead({
  script: [
    { src: 'https://useishara.com/w.js', defer: true, 'data-site': 'pk_…', tagPosition: 'bodyClose' },
  ],
})
</script>

Good to know

  • Use app.head or useHead(), never useHeadSafe(): it keeps only a few safe attributes and drops src, defer and data-site.
  • Without tagPosition, Nuxt puts the script in <head>, which works too because it’s deferred.

Next

Once reviewers leave notes, your coding agent can apply them. The widget’s options (language, position, colour, launcher) are in the docs.