---
title: "Squarespace: add a bug report button and JavaScript error tracking — bugd.one"
description: "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."
url: https://bugd.one/guides/squarespace-bug-reports?lang=en
language: en
updated: 2026-11-28
type: guide
author: Eduard Ditler
alternate_de: https://bugd.one/guides/squarespace-bug-reports
alternate_en: https://bugd.one/guides/squarespace-bug-reports?lang=en
---
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](https://bugd.one/guides/squarespace-bug-reports)

> **In short**
>
> - In Squarespace you paste a short snippet under **Website → Pages → Code Injection** into the **Footer** field and save.
> - That adds the **report button** with screenshot and optionally captures **JavaScript errors**.
> - Requires the **Core, Plus or Advanced** plan (or a legacy Business or Commerce plan). On **Basic**, custom JavaScript doesn't run.
> - No cookies, no tracking; the snippet loads asynchronously and never blocks rendering.

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.

![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: 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):

```html
<!-- 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**.

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

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:

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.

**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: 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
- [Wix: add a bug report button](https://bugd.one/guides/wix-bug-reports?lang=en)
- [Webflow: add a bug report button](https://bugd.one/guides/webflow-bug-reports?lang=en)

## 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.com` address 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](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.
- [Wix: add a bug report button and JavaScript error tracking](https://bugd.one/guides/wix-bug-reports?lang=en) — 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.

[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/squarespace-bug-reports?lang=en · Overview for AI agents: [llms.txt](https://bugd.one/llms.txt) · API: [openapi.json](https://bugd.one/openapi.json)
