Create your first project
Applies toAlpha
First complete Local development or Production deployment and sign in. One Project represents one web product and can contain several Environments.
-
Create a Project
Section titled “Create a Project”- Sign in at your Instance URL (locally,
http://127.0.0.1:4173). - Use the top-left project switcher to open All projects, then Create project.
- Enter a name and select the SDK platform such as React, Vue or JavaScript.
- Add the monitored application’s origin, such as
http://127.0.0.1:5173orhttps://shop.example.com, without a path or trailing slash. This is the application URL, not the Console URL. - Configure Environments such as
developmentandproduction. After creation, onboarding displays the selected platform’s instructions. - Copy the default DSN from Project Settings → Onboarding. It includes the public Ingest URL and a write-only key; you do not need a separate write key.
Success: The Project exists and onboarding shows its DSN and installation instructions.
- Sign in at your Instance URL (locally,
-
Install the Browser SDK
Section titled “Install the Browser SDK”Terminal window pnpm add @openrum/browsersrc/monitoring.ts import { captureEvent, init } from "@openrum/browser";init({dsn: import.meta.env.VITE_OPENRUM_DSN,environment: "development",release: "storefront@0.1.0",});captureEvent("first_event", {attributes: { source: "create-first-project" },});For the snippet above, set
VITE_OPENRUM_DSNin your Vite application’s local environment file and restart its development server. Useproductionwhen deploying a production application. Initialize before application code, outside React render functions.For a runnable repository example, copy
examples/react-vite/.env.exampletoexamples/react-vite/.env.local, set the DSN, then run:Terminal window pnpm --filter @openrum/browser buildpnpm --filter @openrum/example-react-vite dev --host 127.0.0.1See the Browser SDK guide for framework setup, and Next.js or Astro if the application renders on the server.
-
Verify the first Event
Section titled “Verify the first Event”- Open your app and trigger a page view or the
first_eventCustom Event. The repository example’s button sendsdemo_checkoutinstead. - Select the same Project and Environment, and the last 15 minutes. Open Events and allow a few seconds for delivery and consumption.
- Open Sessions and confirm the same
session_idgroups related page, API and error events. - If you raised an error, follow it to an Issue and inspect Session context.
- Open your app and trigger a page view or the
Troubleshooting
Section titled “Troubleshooting”- Event missing: confirm ingest health, write-key Origin allowlist and that Consumer / ClickHouse are healthy.
- CORS or network failure: the DSN address must match the public Ingest URL and allowed Origins.
- Source Map frames unavailable: expected until optional object storage is configured. Core monitoring still works.
Next: Glossary and core concepts, Self-hosting overview, or Investigation.
Release Alpha · commit local