Guide · Last updated: 2026-11-28
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.
Language: Deutsch
Squarespace sites are quick to build, but you don't see what goes wrong for your visitors: a form that doesn't submit, an embedded script that throws an error, a layout that breaks on one phone. With bugd.one visitors report such problems with a button and a screenshot, and JavaScript errors can land in your dashboard automatically.
Prerequisites
- A Squarespace site (version 7.1) on the Core, Plus or Advanced plan or a legacy Business or Commerce plan. You can set up the snippet during the trial, but visitors only see the site after it is published.
- Access as the site owner or an administrator.
- 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: Open Code Injection
In the Squarespace editor open Website → Pages, scroll to the bottom of the page list and open Code Injection under Custom code (older UI: Website Tools). Faster: use the editor search (search icon or the / key) and type “Code Injection”.
Step 2: Paste the snippet into the footer
Paste into the Footer field (inserted before </body> on every page):
<!-- bugd.one -->
<script>
(function () {
var KEY = 'bk_live_YOUR_KEY'
var ENV = /\.squarespace\.com$/.test(location.hostname) ? 'staging' : '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.
Click Save. Don't paste the code without the <script> lines, or Squarespace shows it as text.
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) and, while you test, the internal address https://<site>.squarespace.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 while logged out (Squarespace may hide embedded JavaScript for logged-in users), 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.
On the internal *.squarespace.com address the snippet reports the environment staging; such reports are marked in the dashboard but trigger no e-mails, webhooks or chat messages. Squarespace runs your site's server, so there are no server-side errors to capture. Squarespace doesn't insert injected code on checkout pages, so the button doesn't appear there.
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.
Squarespace cookie banner (“Cookies & Data Privacy”): it keeps Squarespace and some integrations from setting non-essential cookies, but does not block injected code automatically. As bugd.one sets no cookies and the report button only sends something when a visitor asks for it, consent is usually not needed for it. If you use your own consent tool (e.g. Cookiebot), you can assign JavaScript error tracking to a category there.
Troubleshooting
- No button visible: log out and open the site in a private window. Check that the plan is Core or higher (no custom JavaScript on Basic) and that the snippet including the
<script>lines is saved in the Footer field. - The code shows as text on the page: the
<script>and</script>lines are missing. - The editor stops responding: in Code Injection click Disable Scripts in Preview. This only affects your editor, not visitors.
- Older 7.0 templates with Ajax loading: the button normally survives page changes; if not, turn off “Enable Ajax loading” under Design → Site Styles.
- 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
- Wix: add a bug report button
- Webflow: add a bug report button
Frequently asked questions
- Which Squarespace plan do I need?
- Core, Plus or Advanced (or a legacy Business or Commerce plan). On Basic, Code Injection and JavaScript in code blocks are not available; existing code stays saved but doesn't run.
- Can I set it up during the trial?
- Yes. The trial allows Code Injection. Until it is published the site is password-protected, so you only see real visitors afterwards. Reports from the internal
squarespace.comaddress appear as staging. - Why don't I see the button while I'm logged in?
- For security reasons Squarespace may hide embedded JavaScript for logged-in users. Test logged out in a private window.
- Does the button appear at checkout?
- No. Squarespace doesn't insert injected code on checkout pages. The button appears on all other pages.
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.
- 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.
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.