UNPKG

670 BTypeScriptView Raw
1import * as React from 'react';
2import { GaJSAnalytics } from './types';
3export interface Props {
4 account: string;
5 domain: string;
6 devId?: string;
7 allowLinker?: boolean;
8 allowHash?: boolean;
9 set?: any[][];
10 onLoad?(analytics: GaJSAnalytics): void;
11 debug?: boolean;
12}
13export declare const SETUP_SCRIPT = "\n window['_gaq'] = window['_gaq'] || [];\n";
14export declare function setupWithDebugScript(account: String): string;
15export declare const GA_JS_SCRIPT = "https://stats.g.doubleclick.net/dc.js";
16export default class GaJSGoogleAnalytics extends React.PureComponent<Props, never> {
17 render(): JSX.Element;
18 private setAnalytics;
19}