- Website
- Server
Option 1: let the setup agent install it. In your project folder, run:You need Node.js 22 or newer and an interactive terminal. A run usually takes 3 to 10 minutes. 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.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
- In the app, open Data → Events.
- Under Received events, find your event (
page_vieworquickstart_test) and open it to see its properties and how the person was identified. - Open People and search for the email you sent to see the profile.
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.
