fix instructions

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-08-07 22:39:16 +02:00
committed by Carl-Gerhard Lindesvärd
parent ccfddc215f
commit e4eb697b47
3 changed files with 46 additions and 37 deletions

View File

@@ -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 (`<button data-track="your_event" />`) (default: false)

View File

@@ -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