Skip to content

Installation

Add one script tag per domain. Use the same data-key as your tracking script.

<script
src="https://usertrax.io/feedback.js"
data-key="YOUR_AUTH_KEY"
defer
></script>

Place it in <head> or before </body>. On startup the widget loads its config from the API and only renders when feedback is enabled for that domain and your plan allows it.

When serving feedback.js from localhost, the widget defaults to http://localhost:8000 as the API base. Override explicitly if needed:

<script>
window.usertraxFeedback = {
apiBase: "http://localhost:8000",
};
</script>
<script src="/feedback.js" data-key="YOUR_AUTH_KEY" defer></script>

For staging or a custom proxy URL, set apiBase to that origin before the script loads.