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.scriptinnuxt.config.ts- Allowed domains
- Your own domain (set when you add the site)
- Time
- About 3 minutes
Steps
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:
<script src="https://useishara.com/w.js" data-site="pk_…" defer></script>
In
nuxt.config.ts, add the script toapp.head.script. Each property becomes an attribute of the tag, andtagPosition: 'bodyClose'puts it at the end of<body>:export default defineNuxtConfig({ app: { head: { script: [ { src: 'https://useishara.com/w.js', defer: true, 'data-site': 'pk_…', tagPosition: 'bodyClose', }, ], }, }, })Build and deploy the app.
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.
<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.headoruseHead(), neveruseHeadSafe(): it keeps only a few safe attributes and dropssrc,deferanddata-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.