@temps-sdk/analytics-core 0.0.2 → 0.0.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Analytics.d.ts","sourceRoot":"","sources":["../src/Analytics.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAezE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,GAAG,YAAY,CAwI5E"}
1
+ {"version":3,"file":"Analytics.d.ts","sourceRoot":"","sources":["../src/Analytics.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAa,MAAM,SAAS,CAAC;AAezE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,GAAE,gBAAqB,GAAG,YAAY,CAsJ5E"}
package/dist/Analytics.js CHANGED
@@ -1,3 +1,5 @@
1
+ // SPDX-FileCopyrightText: 2024-2026 Temps Contributors
2
+ // SPDX-License-Identifier: MIT OR Apache-2.0
1
3
  import { DEFAULT_BASE_PATH } from "./constants";
2
4
  import { isLocalhostLike, isTestEnvironment, sendAnalytics, sendAnalyticsReliable, } from "./utils";
3
5
  import { EngagementTracker } from "./EngagementTracker";
@@ -8,7 +10,7 @@ import { SessionRecorder } from "./SessionRecorder";
8
10
  * analytics instance. All framework adapters wrap this factory.
9
11
  */
10
12
  export function createAnalytics(options = {}) {
11
- const { basePath = DEFAULT_BASE_PATH, disabled = false, ignoreLocalhost = true, domain, autoTrackPageviews = true, autoTrackPageLeave = true, pageLeaveEventName = "page_leave", autoTrackSpeedAnalytics = true, autoTrackEngagement = true, heartbeatInterval = 30000, inactivityTimeout = 30000, engagementThreshold = 10000, enableSessionRecording = false, sessionRecordingConfig = {}, } = options;
13
+ const { basePath = DEFAULT_BASE_PATH, disabled = false, ignoreLocalhost = true, domain, ingestKey, autoTrackPageviews = true, autoTrackPageLeave = true, pageLeaveEventName = "page_leave", autoTrackSpeedAnalytics = true, autoTrackEngagement = true, heartbeatInterval = 30000, inactivityTimeout = 30000, engagementThreshold = 10000, enableSessionRecording = false, sessionRecordingConfig = {}, } = options;
12
14
  const cleanups = [];
13
15
  const enabled = computeEnabled(disabled, ignoreLocalhost);
14
16
  const resolveDomain = () => domain || (typeof window !== "undefined" ? window.location.hostname : "");
@@ -20,8 +22,9 @@ export function createAnalytics(options = {}) {
20
22
  request_query: window.location.search,
21
23
  request_path: window.location.pathname,
22
24
  domain: resolveDomain(),
25
+ language: navigator.language,
23
26
  event_data: data,
24
- }, "POST", basePath);
27
+ }, "POST", basePath, ingestKey);
25
28
  };
26
29
  const trackPageview = () => {
27
30
  if (!enabled)
@@ -31,12 +34,13 @@ export function createAnalytics(options = {}) {
31
34
  request_query: window.location.search,
32
35
  request_path: window.location.pathname,
33
36
  domain: resolveDomain(),
37
+ language: navigator.language,
34
38
  event_data: {
35
39
  referrer: document.referrer,
36
40
  userAgent: navigator.userAgent,
37
41
  timestamp: new Date().toISOString(),
38
42
  },
39
- }, "POST", basePath);
43
+ }, "POST", basePath, ingestKey);
40
44
  };
41
45
  const identify = async () => {
42
46
  // Placeholder for SDK parity; implement when identity endpoint is available.
@@ -48,6 +52,7 @@ export function createAnalytics(options = {}) {
48
52
  if (autoTrackEngagement) {
49
53
  const tracker = new EngagementTracker({
50
54
  basePath,
55
+ ingestKey,
51
56
  domain: resolveDomain(),
52
57
  heartbeatInterval,
53
58
  inactivityTimeout,
@@ -56,16 +61,22 @@ export function createAnalytics(options = {}) {
56
61
  cleanups.push(() => tracker.destroy());
57
62
  }
58
63
  else if (autoTrackPageLeave) {
59
- cleanups.push(setupLegacyPageLeave(pageLeaveEventName, resolveDomain, basePath));
64
+ cleanups.push(setupLegacyPageLeave(pageLeaveEventName, resolveDomain, basePath, ingestKey));
60
65
  }
61
66
  if (autoTrackSpeedAnalytics) {
62
- const speed = new SpeedTracker({ basePath });
67
+ const speed = new SpeedTracker({ basePath, ingestKey });
63
68
  cleanups.push(() => speed.destroy());
64
69
  }
65
70
  cleanups.push(setupClickDelegation(trackEvent));
66
71
  }
67
72
  const recorder = enabled && enableSessionRecording
68
- ? new SessionRecorder({ basePath, domain: resolveDomain(), enabled: true, ...sessionRecordingConfig })
73
+ ? new SessionRecorder({
74
+ basePath,
75
+ ingestKey,
76
+ domain: resolveDomain(),
77
+ enabled: true,
78
+ ...sessionRecordingConfig,
79
+ })
69
80
  : null;
70
81
  if (recorder)
71
82
  cleanups.push(() => recorder.destroy());
@@ -75,6 +86,7 @@ export function createAnalytics(options = {}) {
75
86
  get enabled() {
76
87
  return enabled;
77
88
  },
89
+ ingestKey,
78
90
  trackEvent,
79
91
  trackPageview,
80
92
  identify,
@@ -87,6 +99,7 @@ export function createAnalytics(options = {}) {
87
99
  }
88
100
  runtimeRecorder = new SessionRecorder({
89
101
  basePath,
102
+ ingestKey,
90
103
  domain: resolveDomain(),
91
104
  enabled: true,
92
105
  ...sessionRecordingConfig,
@@ -188,7 +201,7 @@ function setupClickDelegation(trackEvent) {
188
201
  document.addEventListener("click", onClick);
189
202
  return () => document.removeEventListener("click", onClick);
190
203
  }
191
- function setupLegacyPageLeave(pageLeaveEventName, resolveDomain, basePath) {
204
+ function setupLegacyPageLeave(pageLeaveEventName, resolveDomain, basePath, ingestKey) {
192
205
  let hasTracked = false;
193
206
  const startTime = Date.now();
194
207
  const trackPageLeave = () => {
@@ -201,13 +214,14 @@ function setupLegacyPageLeave(pageLeaveEventName, resolveDomain, basePath) {
201
214
  request_query: window.location.search,
202
215
  request_path: window.location.pathname,
203
216
  domain: resolveDomain(),
217
+ language: navigator.language,
204
218
  event_data: {
205
219
  time_on_page_ms: timeOnPage,
206
220
  timestamp: new Date().toISOString(),
207
221
  url: window.location.href,
208
222
  referrer: document.referrer,
209
223
  },
210
- }, basePath);
224
+ }, basePath, ingestKey);
211
225
  };
212
226
  window.addEventListener("pagehide", trackPageLeave);
213
227
  window.addEventListener("beforeunload", trackPageLeave);
@@ -1,5 +1,7 @@
1
1
  export interface EngagementTrackerOptions {
2
2
  basePath?: string;
3
+ /** Analytics ingest key (`pa_…`). See `AnalyticsClientOptions.ingestKey`. */
4
+ ingestKey?: string;
3
5
  domain?: string;
4
6
  heartbeatInterval?: number;
5
7
  inactivityTimeout?: number;
@@ -31,6 +33,7 @@ export declare class EngagementTracker {
31
33
  private inactivityTimer;
32
34
  private hasTrackedLeave;
33
35
  private readonly basePath;
36
+ private readonly ingestKey?;
34
37
  private readonly domain;
35
38
  private readonly onHeartbeat?;
36
39
  private readonly onPageLeave?;
@@ -1 +1 @@
1
- {"version":3,"file":"EngagementTracker.d.ts","sourceRoot":"","sources":["../src/EngagementTracker.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CAC9C;AAED,MAAM,WAAW,cAAc;IAC7B,uBAAuB,EAAE,MAAM,CAAC;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,wBAAwB,EAAE,MAAM,CAAC;CAClC;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,cAAc,CAAa;IACnC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,mBAAmB,CAAuB;IAClD,OAAO,CAAC,cAAc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,iBAAiB,CAAuB;gBAE7C,OAAO,GAAE,wBAA6B;IAuBlD,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,sBAAsB,CAS5B;IAEF,OAAO,CAAC,WAAW,CAEjB;IAEF,OAAO,CAAC,UAAU,CAGhB;IAEF,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,kBAAkB,CAaxB;IAEF,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,aAAa;YAOP,aAAa;IAqC3B,OAAO,CAAC,eAAe,CA+BrB;IAEF,OAAO,CAAC,gBAAgB,CAGtB;IAEF,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,KAAK;IAcN,OAAO,IAAI,IAAI;CAsBvB"}
@@ -1,3 +1,5 @@
1
+ // SPDX-FileCopyrightText: 2024-2026 Temps Contributors
2
+ // SPDX-License-Identifier: MIT OR Apache-2.0
1
3
  import { sendAnalytics, sendAnalyticsReliable } from "./utils";
2
4
  import { DEFAULT_BASE_PATH } from "./constants";
3
5
  export class EngagementTracker {
@@ -52,6 +54,7 @@ export class EngagementTracker {
52
54
  request_path: window.location.pathname,
53
55
  request_query: window.location.search,
54
56
  domain: this.domain,
57
+ language: navigator.language,
55
58
  event_data: {
56
59
  engagement_time_seconds: data.engagement_time_seconds,
57
60
  total_time_seconds: data.total_time_seconds,
@@ -60,13 +63,14 @@ export class EngagementTracker {
60
63
  url: window.location.href,
61
64
  referrer: document.referrer,
62
65
  },
63
- }, this.basePath);
66
+ }, this.basePath, this.ingestKey);
64
67
  };
65
68
  this.handleNavigation = () => {
66
69
  this.handlePageLeave();
67
70
  this.reset();
68
71
  };
69
72
  this.basePath = options.basePath || DEFAULT_BASE_PATH;
73
+ this.ingestKey = options.ingestKey;
70
74
  this.domain = options.domain || window.location.hostname;
71
75
  this.heartbeatInterval = options.heartbeatInterval || 30000;
72
76
  this.inactivityTimeout = options.inactivityTimeout || 30000;
@@ -153,6 +157,7 @@ export class EngagementTracker {
153
157
  request_path: window.location.pathname,
154
158
  request_query: window.location.search,
155
159
  domain: this.domain,
160
+ language: navigator.language,
156
161
  event_data: {
157
162
  engagement_time: Math.round(this.engagementTime),
158
163
  total_time: Math.round(Date.now() - this.startTime),
@@ -161,7 +166,7 @@ export class EngagementTracker {
161
166
  time_since_last_activity: data.time_since_last_activity,
162
167
  heartbeat_count: this.heartbeatCount,
163
168
  },
164
- }, "POST", this.basePath);
169
+ }, "POST", this.basePath, this.ingestKey);
165
170
  if (this.isActive && this.isVisible) {
166
171
  this.lastEngagementStart = Date.now();
167
172
  }
@@ -1,6 +1,8 @@
1
1
  import type { SessionRecordingConfig } from "./types";
2
2
  export interface SessionRecorderOptions extends SessionRecordingConfig {
3
3
  basePath?: string;
4
+ /** Analytics ingest key (`pa_…`). See `AnalyticsClientOptions.ingestKey`. */
5
+ ingestKey?: string;
4
6
  domain?: string;
5
7
  enabled?: boolean;
6
8
  ignoreSelector?: string;
@@ -15,9 +17,16 @@ export interface SessionRecorderOptions extends SessionRecordingConfig {
15
17
  /**
16
18
  * Framework-agnostic rrweb wrapper. Call `start()` to begin recording and
17
19
  * `stop()` to end. `destroy()` removes all listeners and flushes pending events.
20
+ *
21
+ * Recording pauses while the visitor is idle or the tab is hidden, and resumes
22
+ * on the next interaction with a fresh full snapshot. rrweb records DOM
23
+ * mutations rather than user actions, so without that gate a page that animates
24
+ * or mutates on a timer produces events indefinitely from a visitor who is
25
+ * doing nothing at all.
18
26
  */
19
27
  export declare class SessionRecorder {
20
28
  private readonly basePath;
29
+ private readonly ingestKey?;
21
30
  private readonly excludedPaths;
22
31
  private readonly sessionSampleRate;
23
32
  private readonly maskAllInputs;
@@ -31,15 +40,25 @@ export declare class SessionRecorder {
31
40
  private readonly collectFonts;
32
41
  private readonly batchSize;
33
42
  private readonly flushInterval;
43
+ private readonly idleTimeout;
44
+ private readonly pauseOnHidden;
45
+ private readonly checkoutEveryNms;
46
+ private readonly checkoutEveryNth;
47
+ private readonly maxBufferedEvents;
34
48
  private readonly slimDOMOptions;
35
49
  private readonly maskInputOptions;
36
50
  private readonly samplingConfig;
51
+ private readonly debug;
52
+ /** Failure kinds already reported, so a failing endpoint warns once. */
53
+ private readonly reportedFailures;
37
54
  private stopFn;
38
55
  private takeSnapshot;
39
- private events;
56
+ private pending;
57
+ private inflight;
40
58
  private sessionId;
41
59
  private sessionInitialized;
42
60
  private flushTimer;
61
+ private idleTimer;
43
62
  private initRetryCount;
44
63
  private initFailed;
45
64
  private readonly maxInitRetries;
@@ -47,23 +66,80 @@ export declare class SessionRecorder {
47
66
  private readonly maxSendRetries;
48
67
  private lastSendAttempt;
49
68
  private isSending;
69
+ private starting;
70
+ /**
71
+ * Bumped by every `stopRecording`. `startRecording` captures it before
72
+ * awaiting session init and re-checks afterwards: a stop that lands while
73
+ * init is in flight cannot clean up state that does not exist yet, so the
74
+ * starter has to notice it was superseded and release the session itself.
75
+ */
76
+ private stopGeneration;
77
+ private paused;
78
+ private lastActivityAt;
79
+ private droppedEvents;
80
+ /**
81
+ * Sampling verdict for this recorder, decided once. Re-rolling per call (the
82
+ * previous behaviour) let a recorded session flip itself off on any later
83
+ * path check or resume.
84
+ */
85
+ private sampleDecision;
50
86
  private originalPushState;
51
87
  private originalReplaceState;
88
+ private globalListenersAttached;
52
89
  private enabled;
53
90
  constructor(options?: SessionRecorderOptions);
91
+ /** Sampling verdict, decided once per recorder and then cached. */
92
+ private passesSampling;
54
93
  private shouldRecord;
94
+ /**
95
+ * Report a failed session-replay request. Without `debug`, each kind is
96
+ * reported once per recorder, as a warning: an unreachable endpoint must not
97
+ * print an error into every visitor's console on every retry, but a
98
+ * rejected request (a wrong ingest key, say) must not be silent either.
99
+ */
100
+ private reportFailure;
101
+ private debugLog;
55
102
  private initializeSession;
103
+ /**
104
+ * Claim the batch to transmit. A batch still in flight is returned unchanged
105
+ * so a retry is byte-identical to the attempt that failed; otherwise the
106
+ * pending buffer is drained into a new, immutable batch.
107
+ */
108
+ private claimBatch;
56
109
  private sendEvents;
57
- private scheduleFlush;
110
+ /** True while there is anything left to transmit. */
111
+ private hasBufferedEvents;
112
+ private startFlushTimer;
113
+ private stopFlushTimer;
114
+ private startIdleTimer;
115
+ private stopIdleTimer;
58
116
  private startRecording;
117
+ /** Forget the server session and any client state pointing at it. */
118
+ private clearSession;
119
+ private detachRecorder;
120
+ /**
121
+ * Suspend recording without ending the session. rrweb is detached so a
122
+ * passive page emits nothing at all; `resumeRecording` reattaches and rrweb
123
+ * emits a fresh full snapshot, which is what replay needs to resync after
124
+ * the gap.
125
+ */
126
+ private pauseRecording;
127
+ private resumeRecording;
59
128
  private stopRecording;
129
+ private handleActivity;
130
+ private handleVisibilityChange;
60
131
  private handleUnload;
61
- private wrapHistory;
132
+ private attachGlobalListeners;
133
+ private detachGlobalListeners;
62
134
  private handlePopState;
63
135
  private checkPath;
64
136
  start(): void;
65
137
  stop(): void;
66
138
  destroy(): void;
67
139
  getSessionId(): string | null;
140
+ /** Events discarded because the buffer hit `maxBufferedEvents`. */
141
+ getDroppedEventCount(): number;
142
+ /** Whether recording is currently suspended for idleness or a hidden tab. */
143
+ isPaused(): boolean;
68
144
  }
69
145
  //# sourceMappingURL=SessionRecorder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SessionRecorder.d.ts","sourceRoot":"","sources":["../src/SessionRecorder.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IACpE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,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