UNPKG

react-ga-donottrack

Version:

Wrapper for react-ga that only adds Google Analytics if DoNotTrack is not enabled

15 lines (14 loc) 651 B
/// <reference types="react" /> import * as ReactGA from 'react-ga'; export declare const initialize: typeof ReactGA.initialize; export declare const set: typeof ReactGA.set; export declare const pageview: typeof ReactGA.pageview; export declare const modalview: typeof ReactGA.modalview; export declare const event: typeof ReactGA.event; export declare const timing: typeof ReactGA.timing; export declare const ga: typeof ReactGA.ga; export declare const outboundLink: typeof ReactGA.outboundLink; export declare const exception: typeof ReactGA.exception; export declare class OutboundLink extends ReactGA.OutboundLink { render(): JSX.Element; }