MCPcopy Create free account
hub / github.com/dailydotdev/apps / trackEvent

Function trackEvent

packages/webapp/context/PixelsContext.tsx:79–86  ·  view source on GitHub ↗
(eventName: string)

Source from the content-addressed store, hash-verified

77 // }
78 },
79 trackEvent(eventName: string) {
80 if (typeof globalThis.gtag === 'function') {
81 globalThis.gtag('event', eventName.replace(/ /g, '_').toLowerCase());
82 }
83 if (typeof globalThis.fbq === 'function') {
84 globalThis.fbq('track', eventName);
85 }
86 },
87 };
88
89 return (

Callers

nothing calls this directly

Calls 2

postWebKitMessageFunction · 0.90
replaceMethod · 0.80

Tested by

no test coverage detected