@qurvo/sdk-browser 0.0.14 → 0.0.15
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/dist/index.d.ts +121 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +138 -2
- package/dist/index.js.map +1 -1
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +260 -0
- package/dist/index.test.js.map +1 -0
- package/dist/qurvo.iife.js +1 -1
- package/dist/qurvo.iife.js.map +4 -4
- package/dist/utm.d.ts +15 -0
- package/dist/utm.d.ts.map +1 -0
- package/dist/utm.js +45 -0
- package/dist/utm.js.map +1 -0
- package/dist/utm.test.d.ts +2 -0
- package/dist/utm.test.d.ts.map +1 -0
- package/dist/utm.test.js +59 -0
- package/dist/utm.test.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for the browser SDK.
|
|
3
|
+
*
|
|
4
|
+
* Only `apiKey` is required. All other fields have sensible defaults:
|
|
5
|
+
* endpoint defaults to `http://localhost:3001`, autocapture is enabled,
|
|
6
|
+
* and flush occurs every 3 s or 10 events (whichever comes first).
|
|
7
|
+
*/
|
|
1
8
|
export interface BrowserSdkConfig {
|
|
9
|
+
/** Project API key used to authenticate events with the ingest server. */
|
|
2
10
|
apiKey: string;
|
|
11
|
+
/** Ingest server URL. Defaults to `http://localhost:3001`. */
|
|
3
12
|
endpoint?: string;
|
|
4
13
|
/** If known upfront (e.g. Telegram Mini App), pass user ID to avoid identity gaps and namespace storage per user. */
|
|
5
14
|
distinctId?: string;
|
|
15
|
+
/** Enable automatic pageview tracking on navigation (pushState, popstate, hashchange). Defaults to `true`. */
|
|
6
16
|
autocapture?: boolean;
|
|
17
|
+
/** Milliseconds between automatic queue flushes. Defaults to `3000`. */
|
|
7
18
|
flushInterval?: number;
|
|
19
|
+
/** Maximum number of events buffered before an automatic flush. Defaults to `10`. */
|
|
8
20
|
flushSize?: number;
|
|
9
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Browser SDK singleton that captures events, manages user identity, and
|
|
24
|
+
* persists an offline queue in localStorage.
|
|
25
|
+
*
|
|
26
|
+
* Lifecycle: call {@link QurvoBrowser.init | init()} once with your API key.
|
|
27
|
+
* The SDK generates an anonymous ID on first visit, stores it in localStorage,
|
|
28
|
+
* and upgrades to a known identity when {@link QurvoBrowser.identify | identify()}
|
|
29
|
+
* is called. Autocapture hooks into `pushState`, `popstate`, and `hashchange`
|
|
30
|
+
* to track pageviews automatically.
|
|
31
|
+
*/
|
|
10
32
|
declare class QurvoBrowser {
|
|
11
33
|
private queue;
|
|
12
34
|
private userId;
|
|
@@ -21,13 +43,99 @@ declare class QurvoBrowser {
|
|
|
21
43
|
/** Original history methods saved for restore in shutdown() */
|
|
22
44
|
private originalPushState;
|
|
23
45
|
private originalReplaceState;
|
|
46
|
+
/**
|
|
47
|
+
* Initialize the SDK with the given configuration.
|
|
48
|
+
*
|
|
49
|
+
* Resolves `distinct_id` in priority order: explicit `config.distinctId` →
|
|
50
|
+
* previously stored userId in localStorage → auto-generated anonymous ID.
|
|
51
|
+
* Sets up a localStorage-backed event queue (namespaced per user when
|
|
52
|
+
* `distinctId` is provided), starts the flush timer, enables autocapture
|
|
53
|
+
* (unless opted out), and emits an initial `$pageview`.
|
|
54
|
+
*
|
|
55
|
+
* Calling `init()` a second time is a no-op unless `config.distinctId`
|
|
56
|
+
* differs from the current user, in which case the SDK resets identity
|
|
57
|
+
* and re-initializes to prevent cross-user event linkage.
|
|
58
|
+
*
|
|
59
|
+
* @param config - SDK configuration (only `apiKey` is required).
|
|
60
|
+
*/
|
|
24
61
|
init(config: BrowserSdkConfig): void;
|
|
62
|
+
/**
|
|
63
|
+
* Send a custom event.
|
|
64
|
+
*
|
|
65
|
+
* UTM parameters from the current URL are automatically merged into
|
|
66
|
+
* `properties`; explicitly provided properties take priority over UTM values.
|
|
67
|
+
* Requires {@link QurvoBrowser.init | init()} to have been called first.
|
|
68
|
+
*
|
|
69
|
+
* @param event - Event name (e.g. `"signup"`, `"purchase"`).
|
|
70
|
+
* @param properties - Arbitrary key/value pairs attached to the event.
|
|
71
|
+
*/
|
|
25
72
|
track(event: string, properties?: Record<string, unknown>): void;
|
|
73
|
+
/**
|
|
74
|
+
* Link the current anonymous session to a known user.
|
|
75
|
+
*
|
|
76
|
+
* Stores `userId` in localStorage and sends a `$identify` event that
|
|
77
|
+
* carries the current `anonymous_id`, allowing the server to merge
|
|
78
|
+
* pre-identify anonymous events with the identified user profile.
|
|
79
|
+
*
|
|
80
|
+
* If the user was already identified as a *different* user, the SDK
|
|
81
|
+
* automatically calls {@link QurvoBrowser.reset | reset()} first to
|
|
82
|
+
* prevent cross-user identity linkage.
|
|
83
|
+
*
|
|
84
|
+
* @param userId - Your application's stable user identifier.
|
|
85
|
+
* @param userProperties - Optional user-level properties (e.g. name, plan).
|
|
86
|
+
*/
|
|
26
87
|
identify(userId: string, userProperties?: Record<string, unknown>): void;
|
|
88
|
+
/**
|
|
89
|
+
* Track a pageview (`$pageview` event).
|
|
90
|
+
*
|
|
91
|
+
* Applies a 50 ms debounce on the same URL to suppress duplicate events
|
|
92
|
+
* caused by `pushState` and `popstate` firing in quick succession. Also
|
|
93
|
+
* resets the `$pageleave` flag so a fresh leave event can be emitted when
|
|
94
|
+
* the user navigates away from this page.
|
|
95
|
+
*
|
|
96
|
+
* Called automatically on navigation when `autocapture` is enabled.
|
|
97
|
+
*
|
|
98
|
+
* @param properties - Extra properties to attach to the pageview event.
|
|
99
|
+
*/
|
|
27
100
|
page(properties?: Record<string, unknown>): void;
|
|
101
|
+
/**
|
|
102
|
+
* Track a screen view (`$screen` event).
|
|
103
|
+
*
|
|
104
|
+
* Intended for non-web contexts (e.g. React Native, Telegram Mini Apps)
|
|
105
|
+
* where navigation doesn't map to browser URLs. Sends `$screen_name`
|
|
106
|
+
* inside the event properties.
|
|
107
|
+
*
|
|
108
|
+
* @param screenName - Logical screen name (e.g. `"Settings"`, `"Profile"`).
|
|
109
|
+
* @param properties - Extra properties to attach to the screen event.
|
|
110
|
+
*/
|
|
28
111
|
screen(screenName: string, properties?: Record<string, unknown>): void;
|
|
112
|
+
/**
|
|
113
|
+
* Set user properties on the current user (`$set` event).
|
|
114
|
+
*
|
|
115
|
+
* Properties are always overwritten with the provided values.
|
|
116
|
+
* Use {@link QurvoBrowser.setOnce | setOnce()} to write only if
|
|
117
|
+
* the property has not been set before.
|
|
118
|
+
*
|
|
119
|
+
* @param properties - Key/value pairs to set on the user profile.
|
|
120
|
+
*/
|
|
29
121
|
set(properties: Record<string, unknown>): void;
|
|
122
|
+
/**
|
|
123
|
+
* Set user properties only if they have not been set before (`$set_once` event).
|
|
124
|
+
*
|
|
125
|
+
* Useful for recording first-touch attribution (e.g. `initial_referrer`,
|
|
126
|
+
* `signup_date`) without overwriting values set by earlier events.
|
|
127
|
+
*
|
|
128
|
+
* @param properties - Key/value pairs to set once on the user profile.
|
|
129
|
+
*/
|
|
30
130
|
setOnce(properties: Record<string, unknown>): void;
|
|
131
|
+
/**
|
|
132
|
+
* Clear the current user identity.
|
|
133
|
+
*
|
|
134
|
+
* Removes `userId`, `anonymousId`, and `sessionId` from storage so the
|
|
135
|
+
* next event is treated as a brand-new anonymous visitor. Call this on
|
|
136
|
+
* logout to prevent post-logout events from being attributed to the
|
|
137
|
+
* previous user.
|
|
138
|
+
*/
|
|
31
139
|
reset(): void;
|
|
32
140
|
/** Gracefully stop the SDK: flush remaining events, remove all listeners. */
|
|
33
141
|
shutdown(): void;
|
|
@@ -37,6 +145,19 @@ declare class QurvoBrowser {
|
|
|
37
145
|
private setupAutocapture;
|
|
38
146
|
private setupBeaconFlush;
|
|
39
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Default SDK instance.
|
|
150
|
+
*
|
|
151
|
+
* Import and call `qurvo.init({ apiKey })` to start capturing events.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* import { qurvo } from '@qurvo/sdk-browser';
|
|
156
|
+
*
|
|
157
|
+
* qurvo.init({ apiKey: 'pk_...' });
|
|
158
|
+
* qurvo.track('signup', { plan: 'pro' });
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
40
161
|
export declare const qurvo: QurvoBrowser;
|
|
41
162
|
export {};
|
|
42
163
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqDA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qHAAqH;IACrH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8GAA8G;IAC9G,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,cAAM,YAAY;IAChB,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,WAAW,CAAS;IAE5B,4EAA4E;IAC5E,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,YAAY,CAAK;IAEzB,6EAA6E;IAC7E,OAAO,CAAC,gBAAgB,CAAS;IAEjC,2DAA2D;IAC3D,OAAO,CAAC,SAAS,CAAwE;IACzF,+DAA+D;IAC/D,OAAO,CAAC,iBAAiB,CAAyC;IAClE,OAAO,CAAC,oBAAoB,CAA4C;IAExE;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAM,EAAE,gBAAgB;IAoF7B;;;;;;;;;OASG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAuBzD;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IA0BjE;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAqBzC;;;;;;;;;OASG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAI/D;;;;;;;;OAQG;IACH,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAkBvC;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAkB3C;;;;;;;OAOG;IACH,KAAK;IAOL,6EAA6E;IAC7E,QAAQ,IAAI,IAAI;IA0BhB,yGAAyG;IACzG,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,gBAAgB;IAyBxB,OAAO,CAAC,gBAAgB;CAuBzB;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,KAAK,cAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.qurvo = void 0;
|
|
|
4
4
|
const fflate_1 = require("fflate");
|
|
5
5
|
const sdk_core_1 = require("@qurvo/sdk-core");
|
|
6
6
|
const version_1 = require("./version");
|
|
7
|
+
const utm_1 = require("./utm");
|
|
7
8
|
const SDK_NAME = '@qurvo/sdk-browser';
|
|
8
9
|
const ANON_ID_KEY = 'qurvo_anonymous_id';
|
|
9
10
|
const SESSION_ID_KEY = 'qurvo_session_id';
|
|
@@ -56,6 +57,16 @@ function getContext() {
|
|
|
56
57
|
sdk_version: version_1.SDK_VERSION,
|
|
57
58
|
};
|
|
58
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Browser SDK singleton that captures events, manages user identity, and
|
|
62
|
+
* persists an offline queue in localStorage.
|
|
63
|
+
*
|
|
64
|
+
* Lifecycle: call {@link QurvoBrowser.init | init()} once with your API key.
|
|
65
|
+
* The SDK generates an anonymous ID on first visit, stores it in localStorage,
|
|
66
|
+
* and upgrades to a known identity when {@link QurvoBrowser.identify | identify()}
|
|
67
|
+
* is called. Autocapture hooks into `pushState`, `popstate`, and `hashchange`
|
|
68
|
+
* to track pageviews automatically.
|
|
69
|
+
*/
|
|
59
70
|
class QurvoBrowser {
|
|
60
71
|
queue = null;
|
|
61
72
|
userId = null;
|
|
@@ -70,9 +81,42 @@ class QurvoBrowser {
|
|
|
70
81
|
/** Original history methods saved for restore in shutdown() */
|
|
71
82
|
originalPushState = null;
|
|
72
83
|
originalReplaceState = null;
|
|
84
|
+
/**
|
|
85
|
+
* Initialize the SDK with the given configuration.
|
|
86
|
+
*
|
|
87
|
+
* Resolves `distinct_id` in priority order: explicit `config.distinctId` →
|
|
88
|
+
* previously stored userId in localStorage → auto-generated anonymous ID.
|
|
89
|
+
* Sets up a localStorage-backed event queue (namespaced per user when
|
|
90
|
+
* `distinctId` is provided), starts the flush timer, enables autocapture
|
|
91
|
+
* (unless opted out), and emits an initial `$pageview`.
|
|
92
|
+
*
|
|
93
|
+
* Calling `init()` a second time is a no-op unless `config.distinctId`
|
|
94
|
+
* differs from the current user, in which case the SDK resets identity
|
|
95
|
+
* and re-initializes to prevent cross-user event linkage.
|
|
96
|
+
*
|
|
97
|
+
* @param config - SDK configuration (only `apiKey` is required).
|
|
98
|
+
*/
|
|
73
99
|
init(config) {
|
|
74
|
-
if
|
|
100
|
+
// Account switch detection: if already initialized with a different distinctId,
|
|
101
|
+
// reset anonymous_id and clean up stale queue key to prevent cross-user linkage.
|
|
102
|
+
if (this.initialized && config.distinctId) {
|
|
103
|
+
const previousUserId = safeGetItem(localStorage, USER_ID_KEY);
|
|
104
|
+
if (previousUserId && previousUserId !== config.distinctId) {
|
|
105
|
+
// Remove stale queue key from previous user
|
|
106
|
+
safeRemoveItem(localStorage, `qurvo_queue:${previousUserId}`);
|
|
107
|
+
// Reset anonymous_id so a fresh one is generated for the new user
|
|
108
|
+
safeRemoveItem(localStorage, ANON_ID_KEY);
|
|
109
|
+
safeRemoveItem(sessionStorage, SESSION_ID_KEY);
|
|
110
|
+
// Shutdown existing queue and allow full re-initialization
|
|
111
|
+
this.shutdown();
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return; // Same user or no previous user — no-op
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
else if (this.initialized) {
|
|
75
118
|
return;
|
|
119
|
+
}
|
|
76
120
|
// If distinctId passed at init — use it, otherwise fall back to stored/anonymous
|
|
77
121
|
if (config.distinctId) {
|
|
78
122
|
this.userId = config.distinctId;
|
|
@@ -128,27 +172,59 @@ class QurvoBrowser {
|
|
|
128
172
|
this.setupBeaconFlush();
|
|
129
173
|
this.page();
|
|
130
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Send a custom event.
|
|
177
|
+
*
|
|
178
|
+
* UTM parameters from the current URL are automatically merged into
|
|
179
|
+
* `properties`; explicitly provided properties take priority over UTM values.
|
|
180
|
+
* Requires {@link QurvoBrowser.init | init()} to have been called first.
|
|
181
|
+
*
|
|
182
|
+
* @param event - Event name (e.g. `"signup"`, `"purchase"`).
|
|
183
|
+
* @param properties - Arbitrary key/value pairs attached to the event.
|
|
184
|
+
*/
|
|
131
185
|
track(event, properties) {
|
|
132
186
|
if (!this.queue) {
|
|
133
187
|
console.warn('[Qurvo] SDK not initialized. Call qurvo.init() first.');
|
|
134
188
|
return;
|
|
135
189
|
}
|
|
190
|
+
// Auto-capture UTM params from URL; user-supplied properties take priority
|
|
191
|
+
const utm = (0, utm_1.getUtmParams)();
|
|
192
|
+
const mergedProperties = Object.keys(utm).length > 0 ? { ...utm, ...properties } : properties;
|
|
136
193
|
const payload = {
|
|
137
194
|
event,
|
|
138
195
|
distinct_id: this.userId || this.getAnonymousId(),
|
|
139
196
|
anonymous_id: this.getAnonymousId(),
|
|
140
|
-
properties,
|
|
197
|
+
properties: mergedProperties,
|
|
141
198
|
context: getContext(),
|
|
142
199
|
timestamp: new Date().toISOString(),
|
|
143
200
|
event_id: generateId(),
|
|
144
201
|
};
|
|
145
202
|
this.queue.enqueue(payload);
|
|
146
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Link the current anonymous session to a known user.
|
|
206
|
+
*
|
|
207
|
+
* Stores `userId` in localStorage and sends a `$identify` event that
|
|
208
|
+
* carries the current `anonymous_id`, allowing the server to merge
|
|
209
|
+
* pre-identify anonymous events with the identified user profile.
|
|
210
|
+
*
|
|
211
|
+
* If the user was already identified as a *different* user, the SDK
|
|
212
|
+
* automatically calls {@link QurvoBrowser.reset | reset()} first to
|
|
213
|
+
* prevent cross-user identity linkage.
|
|
214
|
+
*
|
|
215
|
+
* @param userId - Your application's stable user identifier.
|
|
216
|
+
* @param userProperties - Optional user-level properties (e.g. name, plan).
|
|
217
|
+
*/
|
|
147
218
|
identify(userId, userProperties) {
|
|
148
219
|
if (!this.queue) {
|
|
149
220
|
console.warn('[Qurvo] SDK not initialized. Call qurvo.init() first.');
|
|
150
221
|
return;
|
|
151
222
|
}
|
|
223
|
+
// Auto-reset when re-identifying as a different user (PostHog behavior).
|
|
224
|
+
// Prevents anonymous_id from linking two distinct accounts.
|
|
225
|
+
if (this.userId && this.userId !== userId) {
|
|
226
|
+
this.reset();
|
|
227
|
+
}
|
|
152
228
|
this.userId = userId;
|
|
153
229
|
safeSetItem(localStorage, USER_ID_KEY, userId);
|
|
154
230
|
const payload = {
|
|
@@ -162,6 +238,18 @@ class QurvoBrowser {
|
|
|
162
238
|
};
|
|
163
239
|
this.queue.enqueue(payload);
|
|
164
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* Track a pageview (`$pageview` event).
|
|
243
|
+
*
|
|
244
|
+
* Applies a 50 ms debounce on the same URL to suppress duplicate events
|
|
245
|
+
* caused by `pushState` and `popstate` firing in quick succession. Also
|
|
246
|
+
* resets the `$pageleave` flag so a fresh leave event can be emitted when
|
|
247
|
+
* the user navigates away from this page.
|
|
248
|
+
*
|
|
249
|
+
* Called automatically on navigation when `autocapture` is enabled.
|
|
250
|
+
*
|
|
251
|
+
* @param properties - Extra properties to attach to the pageview event.
|
|
252
|
+
*/
|
|
165
253
|
page(properties) {
|
|
166
254
|
if (!this.queue) {
|
|
167
255
|
console.warn('[Qurvo] SDK not initialized. Call qurvo.init() first.');
|
|
@@ -179,9 +267,28 @@ class QurvoBrowser {
|
|
|
179
267
|
this.pageLeaveEmitted = false;
|
|
180
268
|
this.track('$pageview', properties);
|
|
181
269
|
}
|
|
270
|
+
/**
|
|
271
|
+
* Track a screen view (`$screen` event).
|
|
272
|
+
*
|
|
273
|
+
* Intended for non-web contexts (e.g. React Native, Telegram Mini Apps)
|
|
274
|
+
* where navigation doesn't map to browser URLs. Sends `$screen_name`
|
|
275
|
+
* inside the event properties.
|
|
276
|
+
*
|
|
277
|
+
* @param screenName - Logical screen name (e.g. `"Settings"`, `"Profile"`).
|
|
278
|
+
* @param properties - Extra properties to attach to the screen event.
|
|
279
|
+
*/
|
|
182
280
|
screen(screenName, properties) {
|
|
183
281
|
this.track('$screen', { $screen_name: screenName, ...properties });
|
|
184
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* Set user properties on the current user (`$set` event).
|
|
285
|
+
*
|
|
286
|
+
* Properties are always overwritten with the provided values.
|
|
287
|
+
* Use {@link QurvoBrowser.setOnce | setOnce()} to write only if
|
|
288
|
+
* the property has not been set before.
|
|
289
|
+
*
|
|
290
|
+
* @param properties - Key/value pairs to set on the user profile.
|
|
291
|
+
*/
|
|
185
292
|
set(properties) {
|
|
186
293
|
if (!this.queue) {
|
|
187
294
|
console.warn('[Qurvo] SDK not initialized. Call qurvo.init() first.');
|
|
@@ -198,6 +305,14 @@ class QurvoBrowser {
|
|
|
198
305
|
};
|
|
199
306
|
this.queue.enqueue(payload);
|
|
200
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Set user properties only if they have not been set before (`$set_once` event).
|
|
310
|
+
*
|
|
311
|
+
* Useful for recording first-touch attribution (e.g. `initial_referrer`,
|
|
312
|
+
* `signup_date`) without overwriting values set by earlier events.
|
|
313
|
+
*
|
|
314
|
+
* @param properties - Key/value pairs to set once on the user profile.
|
|
315
|
+
*/
|
|
201
316
|
setOnce(properties) {
|
|
202
317
|
if (!this.queue) {
|
|
203
318
|
console.warn('[Qurvo] SDK not initialized. Call qurvo.init() first.');
|
|
@@ -214,6 +329,14 @@ class QurvoBrowser {
|
|
|
214
329
|
};
|
|
215
330
|
this.queue.enqueue(payload);
|
|
216
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* Clear the current user identity.
|
|
334
|
+
*
|
|
335
|
+
* Removes `userId`, `anonymousId`, and `sessionId` from storage so the
|
|
336
|
+
* next event is treated as a brand-new anonymous visitor. Call this on
|
|
337
|
+
* logout to prevent post-logout events from being attributed to the
|
|
338
|
+
* previous user.
|
|
339
|
+
*/
|
|
217
340
|
reset() {
|
|
218
341
|
this.userId = null;
|
|
219
342
|
safeRemoveItem(localStorage, USER_ID_KEY);
|
|
@@ -300,5 +423,18 @@ class QurvoBrowser {
|
|
|
300
423
|
});
|
|
301
424
|
}
|
|
302
425
|
}
|
|
426
|
+
/**
|
|
427
|
+
* Default SDK instance.
|
|
428
|
+
*
|
|
429
|
+
* Import and call `qurvo.init({ apiKey })` to start capturing events.
|
|
430
|
+
*
|
|
431
|
+
* @example
|
|
432
|
+
* ```ts
|
|
433
|
+
* import { qurvo } from '@qurvo/sdk-browser';
|
|
434
|
+
*
|
|
435
|
+
* qurvo.init({ apiKey: 'pk_...' });
|
|
436
|
+
* qurvo.track('signup', { plan: 'pro' });
|
|
437
|
+
* ```
|
|
438
|
+
*/
|
|
303
439
|
exports.qurvo = new QurvoBrowser();
|
|
304
440
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAA2C;AAC3C,8CAA6D;AAE7D,uCAAwC;AAExC,MAAM,QAAQ,GAAG,oBAAoB,CAAC;AACtC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AACzC,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAC1C,MAAM,WAAW,GAAG,eAAe,CAAC;AAEpC,6EAA6E;AAC7E,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAE5B,SAAS,WAAW,CAAC,OAAgB,EAAE,GAAW;IAChD,IAAI,CAAC;QAAC,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,IAAI,CAAC;IAAC,CAAC;AAC7D,CAAC;AACD,SAAS,WAAW,CAAC,OAAgB,EAAE,GAAW,EAAE,KAAa;IAC/D,IAAI,CAAC;QAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC;AAC3D,CAAC;AACD,SAAS,cAAc,CAAC,OAAgB,EAAE,GAAW;IACnD,IAAI,CAAC;QAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,UAAU;IACjB,OAAO,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE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