UNPKG

gtag-ga

Version:

Google Analytics 4 (gtag.js) for NodeJS ES Module. Simple installation to send page views or event tracking.

13 lines (12 loc) 458 B
/// <reference types="gtag.js" /> import ControlParams = Gtag.ControlParams; import EventParams = Gtag.EventParams; import ConfigParams = Gtag.ConfigParams; import CustomParams = Gtag.CustomParams; declare global { interface Window { dataLayer: any[]; } } export declare function gtag(...args: any[]): void; export declare function initializeGtag(trackingId: string, config?: ControlParams | EventParams | ConfigParams | CustomParams): void;