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
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.

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:
<!-- 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.

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.
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:
- Mention bugd.one in your privacy policy.
- Conclude the data processing agreement.
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: 90toinitBugdone(distance from the bottom in pixels) or setposition: '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: all widget options
- JavaScript error tracking in the browser: crash reporter options
- Squarespace: add a bug report button
- Webflow: add a bug report button
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.comsite 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 — 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 — 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 — 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.