Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

chore: enable session replay

Carl-Gerhard Lindesvärdbaedf4343bcc
diff --git a/apps/public/package.json b/apps/public/package.json
index 92f0f8880..0a5fee3f1 100644
--- a/apps/public/package.json
+++ b/apps/public/package.json
@@ -20,7 +20,7 @@
"@opennextjs/cloudflare": "^1.16.5",
"@openpanel/common": "workspace:*",
"@openpanel/geo": "workspace:*",
- "@openpanel/nextjs": "^1.1.1",
+ "@openpanel/nextjs": "^1.2.0",
"@openpanel/payments": "workspace:^",
"@openpanel/sdk-info": "workspace:^",
"@openstatus/react": "0.0.3",
diff --git a/apps/public/src/app/layout.tsx b/apps/public/src/app/layout.tsx
index d6fe60df0..124aa8332 100644
--- a/apps/public/src/app/layout.tsx
+++ b/apps/public/src/app/layout.tsx
@@ -42,6 +42,9 @@ export default function Layout({ children }: { children: React.ReactNode }) {
{process.env.NEXT_PUBLIC_OP_CLIENT_ID && (
<OpenPanelComponent
clientId={process.env.NEXT_PUBLIC_OP_CLIENT_ID}
+ sessionReplay={{
+ enabled: true,
+ }}
trackAttributes
trackOutgoingLinks
trackScreenViews
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1b5f1f944..1911b6031 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -285,8 +285,8 @@ importers:
specifier: workspace:*
version: link:../../packages/geo
'@openpanel/nextjs':
- specifier: ^1.1.1
+ specifier: ^1.2.0
'@openpanel/payments':
specifier: workspace:^
version: link:../../packages/payments
@@ -5866,8 +5866,8 @@ packages:
next: ~15.0.8 || ~15.1.12 || ~15.2.9 || ~15.3.9 || ~15.4.11 || ~15.5.10 || ~16.0.11 || ^16.1.5
wrangler: ^4.59.2
- '@openpanel/[email protected]':
- resolution: {integrity: sha512-azJSB+SxL4ybj9MA1mDZkLBJ67jbZoDQB52SjaPS0lSBLVEQkcJVMO5x+sZFd9UgVVwWIvkTECdLLF+9eyXf8w==}
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-APHnOj34aeOM0JZMqSPWPV1oMDiY9I21MBEm+ne3G00H/fNkE2RyG4F0yxoxripn1EqiZK65a07HZH8qfLgXdQ==}
peerDependencies:
next: ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
@@ -5876,9 +5876,15 @@ packages:
'@openpanel/[email protected]':
resolution: {integrity: sha512-WvVWCBcJvJhM5MYKO5Hxjo4G/E0tnK5XK2UC+hKDHtoF+iKvtUWa5bz18pFAPQprq0u/Ev2YqirPsrMQJy5g2g==}
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-KxFEbY+s0wP5I+su1+j1AOVn6Uvw0QMO+iXbEcmW2MkFAaIuIIPYkHFELxiLPuePLI54gYfbmTr2ZMlz9GJtZw==}
+
'@openpanel/[email protected]':
resolution: {integrity: sha512-n/A9fKiHWcDTH2N6N8MM214ET7aoNJjgpLux0GRW+CD0KDEwI8UosQvvz3UOGHZ3jWqMMsUNdU2B7eYk2W87mg==}
+ '@openpanel/[email protected]':
+ resolution: {integrity: sha512-5AUG/uBZZaeMKFNsp5l21D3Lj0ddPLK4NS/XIol7Q0jp2n6Za2wO5UlJ9MUatMoSLyLHc4a1BK9t+gbBlN7cMg==}
+
'@openstatus/[email protected]':
resolution: {integrity: sha512-uDiegz7e3H67pG8lTT+op+6w5keTT7XpcENrREaqlWl5j53TYyO8nheOG1PeNw2/Qgd5KaGeRJJFn1crhTUSYw==}
peerDependencies:
@@ -24997,19 +25003,27 @@ snapshots:
- encoding
- supports-color
dependencies:
- '@openpanel/web': 1.0.5
+ '@openpanel/web': 1.1.0
react: 19.2.3
react-dom: 19.2.3([email protected])
'@openpanel/[email protected]': {}
+ '@openpanel/[email protected]': {}
+
'@openpanel/[email protected]':
dependencies:
'@openpanel/sdk': 1.0.2
+ '@openpanel/[email protected]':
+ dependencies:
+ '@openpanel/sdk': 1.1.0
+ '@rrweb/types': 2.0.0-alpha.20
+ rrweb: 2.0.0-alpha.20
+
dependencies:
react: 19.2.3