@blackbaud/skyux-lib-stache
Version:
This library was generated with [Nx](https://nx.dev).
29 lines (28 loc) • 1.24 kB
TypeScript
import { OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { SkyAppConfig } from '@skyux/config';
import { StacheWindowRef } from '../shared/window-ref';
import * as i0 from "@angular/core";
export declare class StacheGoogleAnalyticsDirective implements OnInit {
#private;
private windowRef;
private configService;
private router;
private tagManagerContainerId;
private analyticsClientId;
private isEnabled;
private appName;
constructor(windowRef: StacheWindowRef, configService: SkyAppConfig, router: Router);
ngOnInit(): void;
addGoogleTagManagerScript(): void;
/**
* Because GTM adds the Google Analytics script to the page outside of our control,
* instead of loading the GA script twice, we extract the 'ga' window method out so we can
* subscribe to our router events and track SPA page views.
*/
initGoogleAnalytics(): void;
bindPageViewsToRouter(): void;
private updateDefaultConfigs;
static ɵfac: i0.ɵɵFactoryDeclaration<StacheGoogleAnalyticsDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<StacheGoogleAnalyticsDirective, "[stacheGoogleAnalytics]", never, {}, {}, never, never, false, never>;
}