mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
* feat: gtm push signup event * chore: fire only if gtm id is defined --------- Co-authored-by: Peer Richelsen <[email protected]>
9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
declare const window: Window & { dataLayer: Record<string, unknown>[] };
|
|
|
|
export const pushGTMEvent = (event: string, data?: Record<string, unknown>) => {
|
|
window.dataLayer?.push({
|
|
event,
|
|
...data,
|
|
});
|
|
};
|