web-event-tracker-sdk
Version:
Auto-capture web events like page views, button clicks, and link clicks.
15 lines (14 loc) • 398 B
TypeScript
type EventTrackerConfig = {
apiKey: string;
endpoint: string;
autoCapture?: boolean;
};
declare class EventTracker {
private static config;
static init(config: EventTrackerConfig): void;
private static setupAutoCapture;
private static handleClick;
private static capturePageView;
static sendEvent(data: Record<string, any>): void;
}
export default EventTracker;