import { Injector } from "@angular/core"; import { AnalyticsHeaderService } from "../analytics-header/analytics-header.service"; export interface ITokenSeniorX { scope: string; expires_in: string; username: string; token_type: string; access_token: string; refresh_token: string; type: string; email: string; fullName: string; tenantName: string; locale: string; } export interface EventFieldsObject { eventCategory: string; eventAction: string; eventLabel?: string; eventValue?: number; nonInteraction?: boolean; } export interface TimingFieldsObject { timingCategory: string; timingVar: string; timingValue: number; timingLabel?: string; } export declare class GoogleAnalyticsService { private readonly injector; private readonly header; get resource(): import("./resources").Resource; get domain(): string; get tokenData(): ITokenSeniorX; get keyClientCodeForCookie(): string; get clientCode(): number; set clientCode(clientCode: number); constructor(injector: Injector, header: AnalyticsHeaderService); /** * Set the page whe user is to send. */ static setPage(routePath: string): void; /** * Send the page where user is or the page is set before. * * @see {@link https://developers.google.com/analytics/devguides/collection/analyticsjs/pages|Documentation} */ static sendPageView(routePath?: string): void; /** * Send an event. * * @see {@link https://developers.google.com/analytics/devguides/collection/analyticsjs/events|Documentation} */ static sendEvent(fieldsObject: EventFieldsObject): void; /** * Send the timing of a process, like a page load. * * @see {@link https://developers.google.com/analytics/devguides/collection/analyticsjs/user-timings|Documentation} */ static sendTiming(fieldsObject: TimingFieldsObject): void; /** * Add the google analytics snippet on the document and initialize default dimensions * * @see {@link https://developers.google.com/analytics/devguides/collection/analyticsjs/tracking-snippet-reference|JS Snippets} */ initAnalytics(): void; private getActiveClientCode; private setDimensionsDefault; }