UNPKG

ngx-google-analytics

Version:

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

17 lines (16 loc) 684 B
import { IGoogleAnalyticsCommand } from './i-google-analytics-command'; /** * Standardize an key-value objet to configure GA installation. */ export interface IGoogleAnalyticsSettings { /** Is mandatory to provide a tracking code folks... */ trackingCode: string; /** You can inject custom initialization commands like UserId or other e-commerce features. */ initCommands?: Array<IGoogleAnalyticsCommand>; /** If Google changes the uri and I die, you can survive! */ uri?: string; /** If true, trace GA tracking errors in production mode */ enableTracing?: boolean; /** If has a value, nonce will be added to script tag **/ nonce?: string; }