# Install Rebase

> Create a workspace, add the snippet to your website, check it's live and send a test report.

## Set up your workspace

Sign in at [app.rebase.dev](https://app.rebase.dev/login) with a code sent to your work email, or with Google. Setup then walks you through six short steps.

1. You: your name.
2. Workspace: a name for the workspace, your website's address and your company size.
3. Tools: connect GitHub, Linear, Jira or Asana, and Slack if you use it. You can skip this step, but the widget only takes reports once a tracker is connected. Packets work without one.
4. Install: add the snippet to your website and check that it's live.
5. Plan: choose a plan. A first subscription starts with a 14-day trial. Only the workspace Owner can do this.
6. Team: invite teammates, or skip and do it later under **Settings → Team**.

## Add the snippet

The snippet is one line that goes before `</head>` on every page of your website. It looks like this, with your own values filled in:

```html
<script defer src="https://cdn.rebase.dev/loader.min.js" data-key="pk_…" data-rebase-verify="…"></script>
```

Website builders usually call this "custom code" or "head code". On other websites, add it to the shared layout.

Copy yours from the Install step or from **Settings → Websites**.

If someone else runs your website, use **Copy instructions for them** during setup, or **Email instructions** in settings. They don't get access to your workspace.

## Check it's live

Select **Check**. Rebase loads the page over public HTTPS and looks for your snippet. A successful check links that domain to your workspace.

If your website is private or behind a login, check from your own browser instead. Rebase gives you a link to open on the website.

### Test, staging and local websites

The widget only runs on websites you've added and checked, matched by exact address including the scheme and port.

To add a test or staging website, or a developer's local copy, go to **Settings → Websites → Add website** and choose the type of website. Every website needs an HTTPS address and its own check.

## How customers open the widget

Rebase adds nothing to your pages. Customers open the widget where your website offers it, and you choose how per website under **How customers open the widget**:

- **Your code or a link** is what new websites use. Call `rebase.open()` from your own menu or modal, add `data-rebase-report` to any element, or link to any page with `?rebase_report=1` added to the address.
- **Your own button** uses a button already on your website. Select **Pick on your website** and click it, or type a CSS selector.

Your team has its own way in. **Test on this site** in **Settings → Websites** opens the website with a tester link that works for 12 hours. A **Testing as** button with your name appears, and pressing Shift three times opens the widget too. Reports you send this way show your name and are never held for review.

Customers don't need an account. Keeping the widget out of sight is not access control: anyone on your website can send a report.

## Send a test report

In **Settings → Websites**, open your website and choose **Send a test report**. It checks the whole path: the widget, the capture and sending to your tracker.

When it passes, **View report** opens the result.
