02
Widget
The widget key is public. Reporters never need a ChangeBox account.
npm install @changebox/react
<ChangeBox appKey="cb_live_xxxxxxxxx" />
ChangeBox.identify({
id: "user_123",
email: "jane@example.com",
name: "Jane"
})
ChangeBox.setContext({
accountId: "acct_123",
plan: "pro"
})