UNPKG

@mrr_97/next-yandex-metrika

Version:
34 lines (30 loc) 950 B
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; type HitOptions = { callback?: () => void; ctx?: object; params?: { order_price?: number; currency?: string; }; referer?: string; title?: string; }; interface UsePageViewsOptions { ignoreHashChange?: boolean; disabled?: boolean; } declare global { interface Window { ym?: (yid: number, method: string, url: string, options?: HitOptions) => void; } } declare function usePageViews({ ignoreHashChange, disabled }?: UsePageViewsOptions): void; export { YandexMetrika, usePageViews };