Skip to main content
Pick where your events come from. Browsing (page views, products viewed, carts) comes from the website. Orders, sign-ups and history usually come from your server. Most stores use both.
Option 1: let the setup agent install it. In your project folder, run:
1

Confirm the project

The CLI detects Next.js (App Router or Pages Router), React (Vite or Create React App) or a server-rendered HTML site. Nothing changes until you confirm.
2

Sign in

Your browser opens the RevBridge sign-in. Your organization’s publishable key comes from your account, so there is nothing to copy.
3

Review the changes

The agent installs @revbridge/web-sdk, starts it once, adds identify on login and reset on logout, and adds commerce events only if the site sells something. It then runs your typecheck and build and shows a report. At the end it offers to put the changes on a revbridge/web-sdk branch. Nothing is committed without your yes.
You need Node.js 22 or newer and an interactive terminal. A run usually takes 3 to 10 minutes. Run npx @revbridge/setup --detect-only to see what it detects without changing anything.Option 2: paste the snippet. Copy the script tag from Web SDK → Install into the <head> of every page, with your publishable key from Settings → API Keys.Then open your site in a browser. Each page load sends a page_view.

Check that it arrived

  1. In the app, open Data → Events.
  2. Under Received events, find your event (page_view or quickstart_test) and open it to see its properties and how the person was identified.
  3. Open People and search for the email you sent to see the profile.
More on reading that screen in Check your events.
There is no test environment for customer keys. Test with your own contact, as above, before you connect real traffic or import history.

Next steps

Ingesting Events

The full request and response, and how to import history.

Event Types

The standard commerce and page events.

User Identification

Identifiers, merges, profile fields and consent.

Best Practices

The mistakes that pass validation and break your numbers.