first commit
This commit is contained in:
8
calcom/packages/lib/gtm.ts
Normal file
8
calcom/packages/lib/gtm.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
declare const window: Window & { dataLayer: Record<string, unknown>[] };
|
||||
|
||||
export const pushGTMEvent = (event: string, data?: Record<string, unknown>) => {
|
||||
window.dataLayer?.push({
|
||||
event,
|
||||
...data,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user