humanbehavior-js
Version:
SDK for HumanBehavior session and event recording
23 lines • 1.02 kB
TypeScript
/**
* Global tracker utility functions
* Provides helper functions for accessing the global HumanBehavior tracker instance
*/
/**
* Identifies a user using the global HumanBehavior tracker
* @param userProperties - User properties to identify with
* @returns Promise<string> - The endUserId if successful, null if tracker not found
*/
export declare function identifyUserGlobally(userProperties: Record<string, any>): Promise<string> | null;
/**
* Sends an event using the global HumanBehavior tracker
* @param eventName - Name of the event
* @param properties - Event properties
* @returns Promise<boolean> - True if successful, false if tracker not found
*/
export declare function sendEventGlobally(eventName: string, properties?: Record<string, any>): Promise<boolean> | null;
/**
* Checks if the global HumanBehavior tracker is available
* @returns boolean - True if tracker is available
*/
export declare function isGlobalTrackerAvailable(): boolean;
//# sourceMappingURL=global-tracker.d.ts.map