UNPKG

@dotcms/analytics

Version:

Official JavaScript library for Content Analytics with DotCMS.

25 lines (24 loc) 704 B
/** * Updates activity timestamp */ export declare const updateActivityTime: () => void; /** * Checks if user has been inactive */ export declare const isUserInactive: () => boolean; /** * Checks if a new day has started since session creation */ export declare const hasPassedMidnight: (sessionStartTime: number) => boolean; /** * Gets the last activity time */ export declare const getLastActivityTime: () => number; /** * Extracts UTM parameters from current location */ export declare const extractUTMParameters: () => Record<string, string>; /** * Compares UTM parameters to detect campaign changes */ export declare const hasUTMChanged: (currentUTM: Record<string, string>) => boolean;