diff --git a/src/state/application/hooks.ts b/src/state/application/hooks.ts index b41ac32ce2..0ceda4bc36 100644 --- a/src/state/application/hooks.ts +++ b/src/state/application/hooks.ts @@ -1,3 +1,4 @@ +import { sendAnalyticsEvent } from '@uniswap/analytics' import { DEFAULT_TXN_DISMISS_MS } from 'constants/misc' import { useCallback, useEffect, useMemo, useState } from 'react' import { useAppDispatch, useAppSelector } from 'state/hooks' @@ -51,6 +52,7 @@ export function useFiatOnrampAvailability(shouldCheck: boolean, callback?: () => setLoading(true) try { const result = await getMoonpayAvailability() + sendAnalyticsEvent('MoonPay Geochecker', { success: result }) if (stale) return dispatch(setFiatOnrampAvailability(result)) if (result && callback) {