UNPKG

nativescript-google-analytics

Version:

Integrate native google analytics iOS and Android widgets into NativeScript

47 lines (41 loc) 1.22 kB
export interface InitalizeOptions { dispatchInterval?: number; logging?: { native?: boolean; console?: boolean; }; enableDemographics?: boolean; userId?: string; trackingId: string; } export interface LogEventOptions { action: string; category: string; label?: string; value?: number; } export interface LogExceptionOptions { description: string; fatal?: boolean; } export interface StartTimerOptions { category: string; label?: string; name?: string; } export interface LogTimingEventOptions { category: string; label?: string; name?: string; value: number; } export function initalize(options: InitalizeOptions): void; export function logEvent(options: LogEventOptions): void; export function logView(viewName: string): void; export function dispatch(): void; export function logException(options: LogExceptionOptions): void; export function logException(description: string): void; export function startTimer(timerName: string, options: StartTimerOptions): void; export function stopTimer(timerName: string): void; export function logTimingEvent(options: LogTimingEventOptions): void; export function getTracker(): string;