UNPKG

use-tracking

Version:

Use Tracking is a custom React hook with a configurable Tracking component designed to enable simple and effective analytics and event tracking in all your Next.js applications.

17 lines (13 loc) 518 B
import React from 'react'; interface UseTrackingOptions { prefix?: string; ignore?: string[]; meaningfulTags?: string[]; action?: (data: Record<string, string>) => void; } declare function useTracking({ prefix, ignore, meaningfulTags, action, }?: UseTrackingOptions): null; declare function TrackingClientProvider({ config, children, }: { config: UseTrackingOptions; children?: React.ReactNode; }): React.JSX.Element; export { TrackingClientProvider, type UseTrackingOptions, useTracking };