Heard on HTML
Paste it just before the closing body tag of every page.
index.html
<!-- Heard: voice feedback -->
<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>
</body>Install
Heard is a single script. Pick your stack, copy the code, paste it once. The mascot appears in the corner and notes start landing in your inbox.
<!-- Heard: voice feedback -->
<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>
</body>Paste it just before the closing body tag of every page.
Paste it just before the closing body tag of every page.
index.html
<!-- Heard: voice feedback -->
<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>
</body>Add it once to the root layout. It loads after the page is interactive.
app/layout.tsx
import Script from "next/script";
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://heard.example/w.js"
data-key="pk_your_key"
strategy="afterInteractive"
/>
</body>
</html>
);
}Render <Heard /> once, near the root of your app (Vite, CRA, Remix).
src/Heard.tsx
import { useEffect } from "react";
export function Heard({ user }: { user?: string }) {
useEffect(() => {
const s = document.createElement("script");
s.src = "https://heard.example/w.js";
s.async = true;
s.dataset.key = "pk_your_key";
if (user) s.dataset.user = user;
document.body.appendChild(s);
return () => s.remove();
}, [user]);
return null;
}Load it once from your root component. Works the same in Nuxt (app.vue).
src/App.vue
<script setup>
import { onMounted } from "vue";
onMounted(() => {
const s = document.createElement("script");
s.src = "https://heard.example/w.js";
s.async = true;
s.dataset.key = "pk_your_key";
document.body.appendChild(s);
});
</script>Add to your theme's functions.php, or paste the script tag into any “header and footer scripts” plugin.
functions.php
add_action('wp_footer', function () {
echo '<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>';
});Paste into Footer code, save, then publish the site.
Site settings → Custom code → Footer code
<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>Online Store → Themes → Edit code → layout/theme.liquid, just before the closing body tag.
theme.liquid
{% comment %} Heard: voice feedback {% endcomment %}
<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>
</body>Paste into “End of <body> tag”, then publish.
Site settings → General → Custom code → End of body
<script src="https://heard.example/w.js" data-key="pk_your_key" async></script>For builders that block scripts (Notion sites, some no-code tools). The widget sits open in the frame instead of floating.
anywhere HTML is allowed
<iframe
src="https://heard.example/embed?key=pk_your_key"
allow="microphone"
title="Voice feedback"
style="border:0;width:400px;height:560px"
></iframe>Options
From JavaScript: Heard.open(), Heard.close(), Heard.identify(id). The page gets a heard:sent event after every note.