UNPKG

@datataki/client

Version:

A lightweight client-side event tracking library for modern web applications. Track user sessions, page views, interactions and custom events with minimal setup.

21 lines (20 loc) 785 B
/** * Generates an API URL based on project ID and current domain * @param id - The project ID * @returns The generated API URL */ export declare const getApiUrl: (id: string) => string; /** * Normalizes a URL by removing sensitive query parameters * @param url - The URL to normalize * @param sensitiveQueryParams - Array of parameter names to remove * @returns The normalized URL */ export declare const normalizeUrl: (url: string, sensitiveQueryParams?: string[]) => string; /** * Checks if a URL path should be excluded from tracking * @param url - The URL to check * @param excludedPaths - Array of patterns to match against * @returns True if the URL should be excluded */ export declare const isUrlPathExcluded: (url: string, excludedPaths?: string[]) => boolean;