Track Hooks

useIgTrack()

Required to gather analytics data. This hook runs client-side. The host site should provide each prop in whichever way best suits the site design.

interface UseIgTrackProps {
  cartOrCheckoutToken?: string | null;
  country?: string;
  currency?: string;
}

const useIgTrack = (props: UseIgTrackProps) => void