@koiztech/next-yandex-metrika
Version:
Yandex Metrika for Next.js >= 14
19 lines (15 loc) • 626 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
declare function YandexMetrika({ yid, clickmap, trackLinks, accurateTrackBounce, webvisor, strategy }: {
yid?: number;
clickmap?: boolean;
trackLinks?: boolean;
accurateTrackBounce?: boolean;
webvisor?: boolean;
strategy?: 'lazyOnload' | 'afterInteractive' | 'beforeInteractive';
}): react_jsx_runtime.JSX.Element | null;
interface UsePageViewsOptions {
ignoreHashChange?: boolean;
disabled?: boolean;
}
declare function usePageViews({ ignoreHashChange, disabled }?: UsePageViewsOptions): void;
export { YandexMetrika, usePageViews };