react-metrika
Version:
Excellent React/Preact component for Yandex Metrika
14 lines (13 loc) • 1.43 kB
TypeScript
export declare function setMetrikaScriptUrl(url: string): void;
export declare function sendAction(id: number, methodName: 'init', options?: YaMetrika2Options): void;
export declare function sendAction(id: number, methodName: 'addFileExtension', extension: string | string[]): void;
export declare function sendAction(id: number, methodName: 'extLink', url: string, options?: YaMetrika2ExtLinkOptions): void;
export declare function sendAction(id: number, methodName: 'file', url: string, options?: YaMetrika2FileOptions): void;
export declare function sendAction(id: number, methodName: 'firstPartyParams', params: YaMetrika2FirstPartyParamsParams): void;
export declare function sendAction(id: number, methodName: 'notBounce', options?: YaMetrika2NotBounceOptions): void;
export declare function sendAction(id: number, methodName: 'getClientID', callback: (clientID: string) => void): void;
export declare function sendAction(id: number, methodName: 'setUserID', userId: string): void;
export declare function sendAction(id: number, methodName: 'hit', url?: string, options?: YaMetrika2HitOptions): void;
export declare function sendAction(id: number, methodName: 'params', params: any): void;
export declare function sendAction(id: number, methodName: 'reachGoal', target: string, params?: any, callback?: () => void, ctx?: any): void;
export declare function sendAction(id: number, methodName: 'userParams', params: any): void;