ngx-matomo-client
Version:
Matomo (fka. Piwik) client for Angular applications
36 lines (35 loc) • 1.37 kB
TypeScript
import { InjectionToken } from '@angular/core';
import { MatomoECommerceItem, MatomoInstance } from 'ngx-matomo-client/core';
export declare const MATOMO_TESTING_INSTANCE: InjectionToken<MatomoInstance>;
/**
* No-op implementation of {@link MatomoInstance}
*/
export declare class MatomoTestingInstance implements MatomoInstance {
areCookiesEnabled(): boolean;
getAttributionCampaignKeyword(): string;
getAttributionCampaignName(): string;
getAttributionInfo(): string[];
getAttributionReferrerTimestamp(): string;
getAttributionReferrerUrl(): string;
getCrossDomainLinkingUrlParameter(): string;
getCurrentUrl(): string;
getCustomDimension(_customDimensionId: number): string;
getCustomPagePerformanceTiming(): string;
getCustomVariable(_index: number, _scope: string): string;
getEcommerceItems(): MatomoECommerceItem[];
getExcludedReferrers(): string[];
getLinkTrackingTimer(): number;
getMatomoUrl(): string;
getPageViewId(): string;
getCustomData(): unknown;
getPiwikUrl(): string;
getRememberedConsent(): number | string;
getRememberedCookieConsent(): number | string;
getUserId(): string;
getVisitorId(): string;
getVisitorInfo(): unknown[];
hasCookies(): boolean;
hasRememberedConsent(): boolean;
isConsentRequired(): boolean;
isUserOptedOut(): boolean;
}