Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const pushEvent = (event: IEvent) = {
- if (typeof window === 'undefined' || !window.dataLayer) {
- return;
- }
- window.dataLayer.push( event: event.name, ...event.properties });
- }
- export const GTM = {
- pushEvent
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement