@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 +4 -3
- package/dist/index.cjs +1580 -1286
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.mjs +1580 -1286
- package/dist/index.mjs.map +1 -1
- package/dist/loamly.iife.global.js +1578 -1270
- package/dist/loamly.iife.global.js.map +1 -1
- package/dist/loamly.iife.min.global.js +1 -1
- package/dist/loamly.iife.min.global.js.map +1 -1
- package/package.json +1 -1
- package/src/behavioral/form-tracker.ts +107 -1
- package/src/browser.ts +25 -6
- package/src/config.ts +1 -1
- package/src/core.ts +386 -132
- package/src/index.ts +1 -1
- package/src/infrastructure/event-queue.ts +58 -32
- package/src/infrastructure/ping.ts +19 -3
- package/src/types.ts +23 -0
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',
|
|
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
|