import { useEffect } from 'react'; import { inject } from './generic'; import type { AnalyticsProps, Discount, Partner, TrackLeadInput, TrackSaleInput, } from './types'; import { useAnalytics } from './use-analytics'; /** * Injects the Dub Web Analytics script into the page head. * @param props - Analytics options. * ```js * import { Analytics as DubAnalytics } from '@dub/analytics/react'; * * export default function App() { * return ( *