Blog

Add a website feedback widget for bug reports with one script tag

One script tag and one project key. Install the Tiqzen widget, send a test report and watch it arrive as a ticket in your project.

The Tiqzen bug report widget open on a shop's cart page, with a filled-in report form

The Tiqzen widget is a small button in the corner of your site. A visitor clicks it, describes the problem, and a ticket lands in your project with the page's console log and environment attached. Installing it takes one line of HTML.

Before you start

  • Use a client project. Widget reports land in a project's CLIENT REPORTS list, and only client projects have one. Internal projects (the Workspace type) can't take widget reports.
  • You need the Manage workspace settings permission. Workspace admins have it by default.
  • Check your plan's report limit. Free takes 100 bug reports a month. Team and Business have no monthly limit.

People who report through the widget need no account, and they never count as members on any plan.

Step 1: copy the snippet

Open the project and click Settings at the top of the project page. In the panel, open the SDK tab (SDK is the app's name for the widget). The first card is called "Add the widget to your website".

Click Copy snippet with key. It copies the full tag with your project's key filled in. The card shows the tag with a placeholder:

<script async src="https://api.tiqzen.com/widget/v1.js" data-key="YOUR_SDK_API_KEY"></script>

The key is the only thing the tag needs. You can also find it on the project page under Integrations, in the API integrations card, as SDK API Key, where you can show it or rotate it. The key is visible in your page's HTML and works only with the widget. If someone abuses it, rotate it. Rotating stops the old key at once, so update the tag on your site in the same step.

Step 2: paste it into your site

Paste the tag before the closing </body> tag on every page where the widget should appear. For a single-page app, the main HTML template is enough. The script loads asynchronously and is served from our API, pinned to version 1, so the widget stays current on your site without a redeploy.

Step 3: configure it from Tiqzen

Back on the SDK tab, under Widget settings:

  • Theme: one of seven accent colors (blue, black, white, red, purple, green or orange).
  • Position: left or right.
  • Language: Auto, English, Bosnian, or any language you add under Widget languages. Auto serves each visitor their browser language when the project has it, and English otherwise.
  • What's new: shows the release-notes panel in the widget.
  • Allowed report domains: comma-separated hostnames, for example example.com, example.org. An entry covers its subdomains. Leave it empty to accept reports from anywhere.
  • App version: the version each report is tagged with. Leave it blank and reports carry the project's latest released version, but only while What's new is on. With What's new off, a blank field means reports carry no version. A site can also set its own with a data-app-version attribute on the tag.

Click Save widget settings. Installed sites pick up the change on their next page view, with no code edits. If one site needs something different, pin it on that site's tag with a data- attribute, for example data-position="left". The attribute wins over the saved setting.

Step 4: send a test report

The test is to send a report and watch it arrive as a ticket.

Open a page with the widget and click the button in the corner. The widget opens on "How can we help?". Pick Report an issue. The form asks for:

  • Title, required.
  • Severity: the reporter picks how serious it is. Your team confirms or changes it in triage.
  • Description, required, with a small formatting toolbar.
  • Email, required, so your team can write to the reporter.
  • Attachments: Screenshot, Record video (up to 15 seconds) and Attach file.

Above the title there is also Ask AI to fill the fields. The visitor describes the problem in their own words and the widget fills in the title and description for them to review. It is paid from your workspace's AI credit.

Before you submit, give the console something to show. Open devtools on that page and run console.error("widget test"). Then click Submit report. When the widget says "Report submitted!", the ticket exists.

Watch out for one thing. If you already filled in Allowed report domains and you test from localhost or a staging host that isn't on the list, the report is kept but flagged "Outside allowed domains". Flagged reports are hidden from default views and send no notifications. Add the test host to the list, or test before you set it.

Step 5: find the ticket

Open the project's CLIENT REPORTS list. The report is there as a ticket with category Bug, at the first status of the project's workflow (To do by default). Project managers and engineering leads on the project also get an in-app notification. The reporter's severity comes along, and your team confirms or changes it in triage.

Open the ticket. You will find:

  • Attachments with the screenshot and any files, and Screen Recordings with the video.
  • Console with the page's recent console messages, including your widget test line as an error row.
  • Report context (SDK) with App version, Reported at, Origin, User agent and a Captured environment block holding the page URL, referrer, screen size and language.

Unless the visitor used the AI button, AI drafts the title and description from what they wrote, paid from your AI credit. The default prompt asks the model to keep their own words in the description, under Original report. If drafting fails or the credit is used up, the text is stored exactly as typed. After that, the report's title, description, attachments and recordings can't be edited.

Before you call it done

  • The tag is on every page where people should be able to report a bug.
  • A test report arrived in CLIENT REPORTS, with your widget test line on the Console tab.
  • The App version on the test ticket is the one you expect.
  • Allowed report domains lists your live domains, and your staging host if you test there.

For why the console and the environment matter more than the screenshot, read Screenshots lie: what a bug report actually needs. The full feature list is on the bug report widget page.

← All posts

Start tracking bugs the modern way

Free plan includes the capture widget (100 reports a month) and MCP access. No credit card, live in minutes.