fix onboarding

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-13 11:47:27 +01:00
parent 996702437f
commit cfa1d9ab46
3 changed files with 12 additions and 6 deletions

View File

@@ -60,7 +60,6 @@ import {
setProfile,
setProfileId,
trackEvent,
trackScreenView,
} from '@openpanel/nextjs';
// Sends an event with payload foo: bar
@@ -189,6 +188,13 @@ clear();
If you want to track server-side events, you should create an instance of our Javascript SDK. It's exported from `@openpanel/nextjs`
<Callout>
When using server events it's important to create a new client (with a secret). Since it's backend we cannot authorize the request with cors headers.
`Openpanel Dashboard -> Setting -> Clients -> Create client`
</Callout>
```typescript
import { OpenpanelSdk } from '@openpanel/nextjs';