declare const window: Window & { dataLayer: Record[] }; export const pushGTMEvent = (event: string, data?: Record) => { window.dataLayer?.push({ event, ...data, }); };