@deriv-com/analytics 1.42.1 → 1.44.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 +8 -6
- package/dist/browser/analytics.bundle.global.js +7 -6
- package/dist/browser/analytics.bundle.global.js.map +1 -1
- package/dist/browser/analytics.esm.mjs +1 -1
- package/dist/browser/analytics.esm.mjs.map +1 -1
- package/dist/chunk-2R54Y2IU.mjs +4 -0
- package/dist/chunk-2R54Y2IU.mjs.map +1 -0
- package/dist/chunk-L5T5UBUR.mjs +5 -0
- package/dist/chunk-L5T5UBUR.mjs.map +1 -0
- package/dist/chunk-MHY63WMT.mjs +9 -0
- package/dist/chunk-MHY63WMT.mjs.map +1 -0
- package/dist/chunk-TWWU2RKG.js +3 -0
- package/dist/chunk-TWWU2RKG.js.map +1 -0
- package/dist/chunk-XZPWAV3F.mjs +3 -0
- package/dist/chunk-XZPWAV3F.mjs.map +1 -0
- package/dist/{chunk-T4BXL6JM.js → chunk-ZAFMAIS7.js} +3 -3
- package/dist/chunk-ZAFMAIS7.js.map +1 -0
- package/dist/{growthbook-TBZXPHJZ.mjs → growthbook-K2X2PYJR.mjs} +2 -2
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/metafile-iife.json +1 -1
- package/dist/{posthog-DmVmqDsn.d.ts → posthog-BlpiD6V1.d.mts} +4 -0
- package/dist/{posthog-DmVmqDsn.d.mts → posthog-BlpiD6V1.d.ts} +4 -0
- package/dist/posthog-NG27XP3H.mjs +5 -0
- package/dist/posthog-NG27XP3H.mjs.map +1 -0
- package/dist/providers/growthbook/index.d.mts +1 -1
- package/dist/providers/growthbook/index.d.ts +1 -1
- package/dist/providers/growthbook/index.js +2 -2
- package/dist/providers/growthbook/index.mjs +1 -1
- package/dist/providers/posthog/index.d.mts +1 -1
- package/dist/providers/posthog/index.d.ts +1 -1
- package/dist/providers/posthog/index.js +2 -2
- package/dist/providers/posthog/index.js.map +1 -1
- package/dist/providers/posthog/index.mjs +2 -2
- package/dist/providers/posthog/index.mjs.map +1 -1
- package/dist/providers/rudderstack/index.d.mts +4 -2
- package/dist/providers/rudderstack/index.d.ts +4 -2
- package/dist/providers/rudderstack/index.js +1 -1
- package/dist/providers/rudderstack/index.mjs +1 -1
- package/package.json +18 -17
- package/dist/chunk-4V72P52P.mjs +0 -3
- package/dist/chunk-4V72P52P.mjs.map +0 -1
- package/dist/chunk-6BHMKTVG.js +0 -3
- package/dist/chunk-6BHMKTVG.js.map +0 -1
- package/dist/chunk-F3U33XPR.mjs +0 -9
- package/dist/chunk-F3U33XPR.mjs.map +0 -1
- package/dist/chunk-MWNJTXSL.mjs +0 -5
- package/dist/chunk-MWNJTXSL.mjs.map +0 -1
- package/dist/chunk-T4BXL6JM.js.map +0 -1
- package/dist/chunk-TE3DYZVQ.mjs +0 -4
- package/dist/chunk-TE3DYZVQ.mjs.map +0 -1
- package/dist/posthog-QH4OCJ4V.mjs +0 -4
- package/dist/posthog-QH4OCJ4V.mjs.map +0 -1
- /package/dist/{growthbook-TBZXPHJZ.mjs.map → growthbook-K2X2PYJR.mjs.map} +0 -0
package/README.md
CHANGED
|
@@ -402,7 +402,7 @@ await Analytics.initialise({
|
|
|
402
402
|
|
|
403
403
|
// Optional: overridable settings (see "Overridable defaults" table below)
|
|
404
404
|
config: {
|
|
405
|
-
autocapture: false, // disable autocapture entirely
|
|
405
|
+
autocapture: false, // disable autocapture entirely (also disables $rageclick)
|
|
406
406
|
disable_session_recording: true, // opt out of session recording
|
|
407
407
|
session_recording: {
|
|
408
408
|
sessionRecordingSampleRate: 0.5, // record 50% of sessions
|
|
@@ -443,11 +443,13 @@ Consumer keys inside `session_recording` are spread **before** these enforced va
|
|
|
443
443
|
|
|
444
444
|
#### Overridable defaults
|
|
445
445
|
|
|
446
|
-
| Setting | Default
|
|
447
|
-
| ---------------------------------- |
|
|
448
|
-
| `autocapture` | `{ dom_event_allowlist: ['click'] }` | You need more event types
|
|
449
|
-
| `
|
|
450
|
-
| `
|
|
446
|
+
| Setting | Default | Override when… |
|
|
447
|
+
| ---------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
448
|
+
| `autocapture` | `{ dom_event_allowlist: ['click'], element_allowlist: ['button', 'a'] }` | You need more event types or elements. Avoid `false` — it also disables `$rageclick` |
|
|
449
|
+
| `rageclick` | `true` | You want to stop capturing rage clicks |
|
|
450
|
+
| `capture_dead_clicks` | `true` | You want to stop capturing dead clicks |
|
|
451
|
+
| `rate_limiting.events_per_second` | `10` | Legitimate user flows are hitting the burst limiter |
|
|
452
|
+
| `rate_limiting.events_burst_limit` | `100` | Legitimate user flows are hitting the burst limiter |
|
|
451
453
|
|
|
452
454
|
#### ⚠ Do not capture `$pageview` manually
|
|
453
455
|
|