@amplitude/analytics-browser
Version:
Official Amplitude SDK for Web
36 lines • 2.43 kB
TypeScript
import { PageTrackingOptions, ElementInteractionsOptions, BrowserOptions, AutocaptureOptions, AttributionOptions, NetworkTrackingOptions, FrustrationInteractionsOptions } from '@amplitude/analytics-core';
export declare const isAttributionTrackingEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const isFileDownloadTrackingEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const isFormInteractionTrackingEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const isPageViewTrackingEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const isSessionTrackingEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const isPageUrlEnrichmentEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
/**
* Returns true if
* 1. if autocapture.networkTracking === true
* 2. if autocapture.networkTracking === object
* otherwise returns false
*/
export declare const isNetworkTrackingEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
/**
* Returns true if
* 1. autocapture === true
* 2. if autocapture.elementInteractions === true
* 3. if autocapture.elementInteractions === object
* otherwise returns false
*/
export declare const isElementInteractionsEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
/**
* Returns true if
* 1. autocapture === true
* 2. if autocapture.webVitals === true
* otherwise returns false
*/
export declare const isWebVitalsEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const isFrustrationInteractionsEnabled: (autocapture: AutocaptureOptions | boolean | undefined) => boolean;
export declare const getElementInteractionsConfig: (config: BrowserOptions) => ElementInteractionsOptions | undefined;
export declare const getFrustrationInteractionsConfig: (config: BrowserOptions) => FrustrationInteractionsOptions | undefined;
export declare const getNetworkTrackingConfig: (config: BrowserOptions) => NetworkTrackingOptions | undefined;
export declare const getPageViewTrackingConfig: (config: BrowserOptions) => PageTrackingOptions;
export declare const getAttributionTrackingConfig: (config: BrowserOptions) => AttributionOptions;
//# sourceMappingURL=default-tracking.d.ts.map