Overview
Load feedbackfun directly from our CDN using a <script> tag. The widget auto-initializes when the page loads — no JavaScript code required.
Installation
Add both lines before the closing </body> tag:
Data attributes
Configure the widget using data-* attributes on the <script> tag:
Local development
When running on localhost, pass your production domain via data-feedbackfun-dev-domain:
Remove data-feedbackfun-dev-domain before deploying to production.
Full HTML example
Runtime API
After the widget loads, you can call these methods from JavaScript:
window.feedbackfun is available after the script tag loads. Wrap calls in a DOMContentLoaded listener if you call them before the page fully loads.