UNPKG

ngx-google-analytics

Version:

A simple ng-9 wrapper to load Google Analytics dependency by angular way

12 lines (11 loc) 514 B
import { DataLayer } from '../types/data-layer.type'; import { InjectionToken } from '@angular/core'; import { GaWindow } from './ngx-google-analytics-window'; /** * Check if there is some global function called gtag on Window object, or create an empty function to doesn't brake codes... */ export declare function getDataLayerFn(window: GaWindow): DataLayer; /** * Provides an injection token to access Google Analytics DataLayer Collection */ export declare const NGX_DATA_LAYER: InjectionToken<DataLayer>;