# 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.

<pre class="language-typescript"><code class="lang-typescript"><strong>interface UseIgTrackProps {
</strong>  cartOrCheckoutToken?: string | null;
  country?: string;
  currency?: string;
}

<strong>const useIgTrack = (props: UseIgTrackProps) => void
</strong></code></pre>
