@bugster/bugster-js
Version:
An SDK to capture user interactions on web applications
38 lines (37 loc) • 1.17 kB
TypeScript
import { BugsterConfig } from './types';
declare class BugsterTracker {
private config;
private distinctId;
private sessionId;
private queue;
private persistence;
private lastActivityTimestamp;
private inputDebounceTimers;
private isCapturingEnabled;
private lastSessionUpdate;
constructor(config: BugsterConfig);
private initialize;
private checkRemoteConfig;
private generateId;
identify(distinctId: string, properties?: Record<string, any>): void;
capture(eventName: string, properties?: Record<string, any>, skipSessionCheck?: boolean): void;
private getDefaultProperties;
private getBrowserInfo;
private getDeviceInfo;
private getUtmParams;
private setupEventListeners;
private handleBlurEvent;
private handleEvent;
private truncateElementData;
private truncateAttributes;
private truncateString;
private sanitizeInputValue;
private getElementData;
private getElementAttributes;
private handlePageLeave;
private capturePageview;
private checkAndUpdateSession;
private startBatchingLoop;
private flush;
}
export default BugsterTracker;