diff --git a/apps/dashboard/src/modals/Instructions.tsx b/apps/dashboard/src/modals/Instructions.tsx index 7958923b..1de4de33 100644 --- a/apps/dashboard/src/modals/Instructions.tsx +++ b/apps/dashboard/src/modals/Instructions.tsx @@ -64,16 +64,13 @@ const Instructions = ({ framework, client }: Props) => {
Copy the code below and insert it to you website
Install dependencies
Add OpenpanelProvider to your root layout
+Add OpenPanelComponent to your root layout
Create a custom event called "my_event".
The payload should be a JSON object with the following fields:
diff --git a/apps/docs/src/components/web-sdk-config.mdx b/apps/docs/src/components/web-sdk-config.mdx index f5d5e432..3ffae7e9 100644 --- a/apps/docs/src/components/web-sdk-config.mdx +++ b/apps/docs/src/components/web-sdk-config.mdx @@ -1,6 +1,6 @@ ##### Web options -- `trackScreenViews` - If true, the library will automatically track screen views -- `trackOutgoingLinks` - If true, the library will automatically track outgoing links -- `trackAttributes` - If true, the library will automatically track attributes +- `trackScreenViews` - If true, the library will automatically track screen views (default: false) +- `trackOutgoingLinks` - If true, the library will automatically track outgoing links (default: false) +- `trackAttributes` - If true, you can trigger events by using html attributes (``) (default: false) diff --git a/apps/docs/src/pages/docs/migration/beta-v1.mdx b/apps/docs/src/pages/docs/migration/beta-v1.mdx index 5e694626..1a53457d 100644 --- a/apps/docs/src/pages/docs/migration/beta-v1.mdx +++ b/apps/docs/src/pages/docs/migration/beta-v1.mdx @@ -30,6 +30,7 @@ op.screenView({ title: 'Home' }); // path will be what ever window.location.path ## Script tag - New: `https://openpanel.dev/op1.js` should be used instead of `op.js` (note the filename) +- Renamed: Tracking with attributes have changed. Use `data-track="my_event"` instead of `data-event="my_event"` ## @openpanel/nextjs