@loamly/tracker 2.1.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ Combined with [@loamly/edge](../edge/) for server-side detection, you get **75-8
30
30
  ```html
31
31
  <script src="https://cdn.jsdelivr.net/npm/@loamly/tracker@2/dist/loamly.iife.min.global.js"></script>
32
32
  <script>
33
- Loamly.init({ apiKey: 'your-api-key' });
33
+ Loamly.init({ apiKey: 'your-api-key', workspaceId: 'your-workspace-uuid' });
34
34
  </script>
35
35
  ```
36
36
 
@@ -43,7 +43,7 @@ npm install @loamly/tracker
43
43
  ```typescript
44
44
  import { loamly } from '@loamly/tracker';
45
45
 
46
- loamly.init({ apiKey: 'your-api-key' });
46
+ loamly.init({ apiKey: 'your-api-key', workspaceId: 'your-workspace-uuid' });
47
47
  ```
48
48
 
49
49
  ## Features
@@ -102,7 +102,8 @@ Initialize the tracker with configuration.
102
102
 
103
103
  ```typescript
104
104
  loamly.init({
105
- apiKey: 'your-api-key', // Required
105
+ apiKey: 'your-api-key', // Required
106
+ workspaceId: 'your-workspace-uuid', // Required for public tracker keys
106
107
  apiHost: 'https://app.loamly.ai', // Optional: custom host
107
108
  debug: true, // Optional: enable console logging
108
109
  disableAutoPageview: false, // Optional: disable auto pageview