Guide · Last updated: 2026-11-26

Shopify bug reports and JavaScript error tracking for your theme

A report button and JavaScript error tracking for Shopify stores via a Liquid snippet: setup in theme.liquid, failed cart requests, privacy and limits.

Language: Deutsch

In a Shopify store you don't see what happens in your customers' browsers: an app's script that breaks on product pages, an “Add to cart” that fails with a server error, a layout that breaks on one particular phone. With the bugd.one snippet customers report such problems with one click, and JavaScript errors can land in your dashboard automatically.

Prerequisites

  • A Shopify store in which you may edit the theme code.
  • A bugd.one account: new accounts try all Pro features free for 7 days, no credit card required. After that 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.
  • The project key (bk_live_…) from Project → Settings. It is public and will appear in the page source.
  • The snippet: bugdone-shopify-snippet.liquid.

Step by step

Step 1: Create the snippet

Open Online Store → Themes → … → Edit code, click “Add a new snippet” in the Snippets folder, name it `bugdone`, paste the content of the downloaded file and save.

Step 2: Include the snippet in theme.liquid

Open Layout → `theme.liquid` and add this right before `</head>` (replace the key):

{% render 'bugdone',
  project_key: 'bk_live_YOUR_KEY',
  report_button: true,
  js_errors: false,
  http_errors: true,
  environment: 'production',
  button_style: 'pill',
  button_position: 'bottom-right',
  primary_color: '',
  release: ''
%}

Only project_key is required; without anything else the report button appears bottom right. The parameters:

ParameterValuesMeaning
report_buttontrue / falseshow the report button (default true)
js_errorstrue / falsecapture JavaScript errors (default false)
http_errorstrue / falseonly with js_errors: true: server errors (5xx) and network errors of requests to your own store, e.g. /cart/add.js (default true)
environmentproduction, staging, developmentenvironment
button_stylepill, pill-always, icon, text, tabbutton style
button_positionbottom-right, bottom-leftbutton position
primary_colorhex color like '#0d9488'color of button and form
releaseup to 50 characters of letters, digits, spaces and . _ + -shown as “found in version”, e.g. your theme version

report_button, js_errors and http_errors expect true or false without quotes. Invalid values are ignored; an invalid key outputs nothing. The form language (request.locale) and the link to the store's privacy policy come from Shopify automatically.

Step 3: Allow your domain

If you keep a list under Project → Settings → Allowed domains in bugd.one, add your store domain (e.g. https://www.my-store.com) and, if customers use it, the https://<shop>.myshopify.com address. Otherwise bugd.one rejects reports with HTTP 403 origin_not_allowed. An empty list allows all domains.

Step 4: Test

Click the button in your store 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 store's browser console; the error appears under Crashes.

What is captured

  • Reports from your customers with text, optional screenshot, browser, page and recent console errors.
  • Uncaught JavaScript errors (with js_errors: true) with the last steps before them, plus scripts and stylesheets that fail to load. Errors that happen before the crash reporter has loaded are buffered by the snippet and reported after start.
  • Failed shop requests (with http_errors: true): server errors (5xx) and network errors of requests to your own store, e.g. /cart/add.js, grouped by method, path (IDs as :id) and status.

Where the button appears: on all store pages of the theme. Not in checkout (Shopify allows no theme scripts there) and not in the theme editor's section preview (request.visual_preview_mode). In the regular theme editor the button is visible and can be tested.

Environments

Use environment: 'production' for the live store. For test stores or a theme copy you test with, set environment: 'development' (or 'staging'). Those reports appear in the dashboard marked DEV but trigger no e-mails, webhooks or chat messages.

Privacy

You as the store operator are the controller for the data the snippet sends to bugd.one; bugd.one (Mignuti Media) processes it on your behalf. Before you put the button live:

  1. Add bugd.one to your privacy policy. If you have no privacy policy of your own in Shopify under Settings → Policies, the form links bugd.one's.
  2. Conclude the data processing agreement.

Sent with the report button (only when a customer submits): the text entered, what the customer attaches (screenshot only on request, images; photos and voice messages only if support or feedback is enabled for the project), name and e-mail address only with consent, the page address without parameters, browser and operating system, recent console errors and failed requests (e-mail addresses, tokens and URL parameters removed first), environment and release. With JavaScript errors (for all visitors, when enabled): error message, stack trace, page address without parameters, browser, operating system, environment, release and the last steps before the error.

Not sent: customer data from Shopify, 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 customer can see status and replies under “My reports”. The data is stored with Cloudflare under EU jurisdiction.

Page speed

Both scripts (crash-reporter.umd.js and widget.umd.js) load with defer, so they never block rendering, and start as soon as the HTML has been parsed. Without js_errors: true the crash reporter isn't loaded at all; with report_button: false the widget is skipped.

Troubleshooting

  • The report button covers another button (chat, callback, cookie settings): in the plugin settings, right below the position, raise the distance from bottom (“Bottom offset” in some plugins), e.g. to 90 – the button then sits above the other one. Or change the side distance, or move it to the left. Empty = 16 px.
  • No button visible: search the page source for widget.umd.js. If it's missing, check the key (must start with bk_live_ and contain only letters, digits, _ and -) and that the render line sits before </head> in the active theme. Turn off ad blockers for the test.
  • HTTP 403 `origin_not_allowed`: add your store domain and, if needed, the myshopify.com address under Allowed domains.
  • HTTP 403 `project_read_only`: the trial has ended; choose a plan.
  • Gone after a theme switch: add the snippet and the render line to the new theme.
  • Content Security Policy: if your theme sets a CSP, allow https://bugd.one in script-src and connect-src.

Going further

Frequently asked questions

Is there a Shopify app?
A Shopify app with a “bugd.one” app embed block and settings in the theme editor is in preparation. It uses the same snippet. Until then you add the snippet to your theme by hand, which takes a few minutes.
Does the report button work in checkout?
No. Shopify doesn't allow theme scripts in checkout; that would need Checkout UI Extensions. On every other page of the theme – home, products, collections, cart, customer account – the button appears.
Do I need the server key?
No. For Shopify the public project key (bk_live_…) is enough. Never put the server key (bk_server_…) in the theme; it is secret. There are no server-side errors to capture anyway, as Shopify runs the server.
Is customer data sent to bugd.one?
No. The snippet doesn't use the customer object: no customer ID, no name, no e-mail address, no cart. It requests no Admin API permissions and sets no cookies.
What happens on a theme update?
Updates from the Theme Store come as a new copy of the theme. Add the bugdone snippet and the render line in theme.liquid there again.

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 · Read the docs · All guides