---
title: "Wix: add a bug report button and JavaScript error tracking — bugd.one"
description: "Add bugd.one to Wix with Custom Code: a report button with screenshot and optional JavaScript errors, requirements, the cookie banner, privacy and troubleshooting."
url: https://bugd.one/guides/wix-bug-reports?lang=en
language: en
updated: 2026-11-28
type: guide
author: Eduard Ditler
alternate_de: https://bugd.one/guides/wix-bug-reports
alternate_en: https://bugd.one/guides/wix-bug-reports?lang=en
---
Guide · Last updated: 2026-11-28

# Wix: add a bug report button and JavaScript error tracking

Add bugd.one to Wix with Custom Code: a report button with screenshot and optional JavaScript errors, requirements, the cookie banner, privacy and troubleshooting.

Language: [Deutsch](https://bugd.one/guides/wix-bug-reports)

> **In short**
>
> - In Wix you paste a short snippet under **Settings → Custom Code**: all pages, “Load code once”, placement **Body - end**.
> - That adds the **report button** with screenshot and optionally captures **JavaScript errors**.
> - Requirement: a **published site with a connected domain** (i.e. a premium plan). Custom code does not run in the editor or preview.
> - No cookies, no tracking; the snippet loads asynchronously and never blocks rendering. Works in the Wix Editor and in Wix Studio.

On a Wix site you rarely notice when something goes wrong for visitors: a form that doesn't submit on mobile, an embedded app that throws an error, a layout that breaks in one browser. With bugd.one visitors report such problems with a button and a screenshot, and JavaScript errors can land in your dashboard automatically.

## Prerequisites

- A **published** Wix site (Wix Editor or Wix Studio) with a **connected domain**. Wix only runs Custom Code then, and a domain can only be connected with a premium plan.
- Access to the site's dashboard as owner or admin.
- A bugd.one account: new accounts try all Pro features free for 7 days, no credit card. Then the project needs Pro (€9.90) or Team (€29.90) per month (incl. VAT); without an active plan bugd.one accepts no new reports or crashes.
- Your **project key** (`bk_live_…`) from **Project → Settings**. It is public and may appear in the page source. Never put the server key (`bk_server_…`) into a website.

![Project settings with API key and allowed domains](https://bugd.one/screenshots/docs-api-key.webp)
*Project → Settings: this is where you find the API key (bk_live_…) and set the allowed domains.*

## Step by step

### Step 1: Add custom code

Open your site's dashboard and go to **Settings**. In the **Development & integrations** section click **Custom Code**, then **+ Add Custom Code** in the top right.

Paste into the text box:

```html
<!-- bugd.one -->
<script>
  (function () {
    var KEY = 'bk_live_YOUR_KEY'
    var ENV = 'production'
    function load(src, start) {
      var s = document.createElement('script')
      s.src = src
      s.async = true
      s.onload = start
      document.head.appendChild(s)
    }
    // Report button
    load('https://bugd.one/widget.umd.js', function () {
      window.Bugdone.initBugdone({
        projectKey: KEY,
        host: 'https://bugd.one',
        environment: ENV,
        privacyUrl: location.origin + '/privacy-policy',
      })
    })
    // JavaScript errors (optional: delete the next 8 lines if you don't want them)
    load('https://bugd.one/crash-reporter.umd.js', function () {
      window.BugdoneCrashReporter.initCrashReporter({
        projectKey: KEY,
        host: 'https://bugd.one',
        environment: ENV,
        sessions: false,
      })
    })
  })()
</script>
```

Replace `bk_live_YOUR_KEY` with your project key and `/privacy-policy` with the address of your privacy policy; the form links it next to the consent. The snippet loads both scripts asynchronously, so it never blocks page rendering. `sessions: false` makes sure bugd.one only receives data when an error occurs, not on every page view.

### Step 2: Choose pages and placement

Enter a name, e.g. “bugd.one”. Under **Add Code to Pages** choose **All pages** and below it **Load code once**. Wix sites switch pages without a full reload; once loaded, the button stays on every page. Under placement choose **Body - end** and click **Apply**.

The **Code Type** tab defaults to **Essential**. That fits the report button: it sets no cookies and only sends something when a visitor submits a report (see Privacy).

### Step 3: Allow your domains and test

If your bugd.one project keeps a list under **Project → Settings → Allowed domains**, add your domain (e.g. `https://www.my-site.com`). Otherwise bugd.one rejects reports with HTTP 403 `origin_not_allowed`. An empty list allows all domains.

Open the published site in a private window (not in the editor or preview), click the button and send a test report; it appears in the dashboard under **Bugs**. For JavaScript errors run `setTimeout(function () { throw new Error('bugd.one test ' + Date.now()) })` in the browser console; the error appears under **Crashes**.

![Widget form with name, e-mail address and a ticked consent checkbox](https://bugd.one/screenshots/widget-consent.webp)
*The consent checkbox only appears once a name or e-mail is entered — without them the report is sent anonymously.*

## What is captured

- **Reports from your visitors** with text, an optional screenshot (password and payment fields blacked out), browser, page and recent console errors.
- **Uncaught JavaScript errors** (with the optional part of the snippet) including the last steps before them, plus scripts and stylesheets that fail to load.

Wix runs your site's server, so there are no server-side errors to capture. Custom code has no access to Wix data such as members or orders, and the snippet doesn't read them either.

> **Limits on Wix**
>
> - **Published site only:** Wix doesn't run custom code in the editor or preview.
> - **Domain change:** Wix deletes custom code when a different domain is assigned to the site. Add the snippet again afterwards.
> - **Failed requests:** since late 2025 Wix protects the browser's `fetch` function against changes. The crash reporter handles this, but failed requests may be missing from the “steps before the error” on Wix sites. Errors themselves are still reported.

## Privacy

As the website operator you are the controller for the data the snippet sends to bugd.one; bugd.one (Mignuti Media) processes it on your behalf. Before you go live:

1. Mention bugd.one in your privacy policy.
2. Conclude the [data processing agreement](https://bugd.one/datenschutz/avv).

**Sent** with the report button (only when a visitor submits): the text entered, anything the visitor attaches (screenshot only on request, images), name and e-mail address only with consent, the page address without parameters, browser and operating system and recent console errors (e-mail addresses and tokens removed). With JavaScript errors: error message, stack trace, page address without parameters, browser, operating system, environment and the last steps before the error (pages visited, an identifier of clicked controls without text or input, failed requests without parameters, console error and warning messages).

**Not sent:** cookies and form input. The snippet sets no cookies; only after a report is submitted does the form store an access key in `localStorage` so the reporter can see status and replies under “My reports”. The data is stored with Cloudflare under EU jurisdiction.

**Wix cookie banner:** custom code is assigned to a cookie category through its **Code Type** (Essential, Functional, Analytics, Marketing). The report button sets no cookies and only acts when a visitor asks for it, so “Essential” fits. If you want to load JavaScript error tracking only after consent, add it as a **second** custom code with Code Type **Functional** (only the `load(…crash-reporter…)` part, with its own `KEY` and `ENV`) and delete those lines from the first one.

## Troubleshooting

- **No button visible:** publish the site and open it in a private window. The button never appears in the editor or preview. Under **Custom Code** check that the snippet's toggle is on and **All pages** is selected.
- **“Custom Code” is missing from Settings:** the site has no connected domain or no premium plan yet.
- **Snippet gone after a domain change:** Wix removes it automatically; just add it again.
- **The report button covers another button (chat, cookie settings):** add `offsetY: 90` to `initBugdone` (distance from the bottom in pixels) or set `position: 'bottom-left'`.
- **HTTP 403 `origin_not_allowed`:** add your domain under **Allowed domains**.
- **HTTP 403 `project_read_only`:** the trial has ended; choose a plan.
- **Ad blockers:** some blockers stop error-tracking scripts. Test in a private window without extensions.

## Going further

- [Bug report button for your own website](https://bugd.one/guides/bug-report-button-website?lang=en): all widget options
- [JavaScript error tracking in the browser](https://bugd.one/guides/javascript-error-tracking?lang=en): crash reporter options
- [Squarespace: add a bug report button](https://bugd.one/guides/squarespace-bug-reports?lang=en)
- [Webflow: add a bug report button](https://bugd.one/guides/webflow-bug-reports?lang=en)

## Frequently asked questions

**Do I need a Wix premium plan?**
In practice yes. Wix only runs Custom Code on published sites with a connected domain, and a domain can only be connected with a premium plan. On a free `wixsite.com` site the snippet doesn't run.

**Is there a bugd.one app in the Wix App Market?**
No, and you don't need one. The snippet in this guide adds the report button and optionally JavaScript errors. You don't need the server key on Wix.

**Why “Load code once” and not on each new page?**
Wix sites switch pages without a full reload. Once loaded, the report button stays visible on every page and the crash reporter notices page changes itself. With “each new page” the snippet would run again on every page change.

**Does it work with Wix Studio?**
Yes. Wix Studio uses the same **Custom Code** setting in the site's dashboard; the steps are the same.

## Related guides

- [Add a bug report button to your website](https://bugd.one/guides/bug-report-button-website?lang=en) — Embed a feedback widget with screenshots, annotation and “My reports” via one script tag — options, environments, privacy link and self-hosting via ZIP.
- [JavaScript error tracking in the browser](https://bugd.one/guides/javascript-error-tracking?lang=en) — Capture uncaught errors and unhandled promise rejections in the browser: crash reporter via script tag (ESM/UMD), releases and source-map upload with curl.
- [Squarespace: add a bug report button and JavaScript error tracking](https://bugd.one/guides/squarespace-bug-reports?lang=en) — Add bugd.one to Squarespace 7.1 with Code Injection: a report button with screenshot and optional JavaScript errors, plan requirements, the cookie banner, privacy and troubleshooting.

## Up and running in two minutes

Create an account, add a project, paste your key — all Pro features free for 7 days, no credit card required.

[Try free for 7 days](https://bugd.one/login) · [Read the docs](https://bugd.one/docs) · [All guides](https://bugd.one/guides?lang=en)

---

bugd.one — https://bugd.one/guides/wix-bug-reports?lang=en · Overview for AI agents: [llms.txt](https://bugd.one/llms.txt) · API: [openapi.json](https://bugd.one/openapi.json)
