This commit is contained in:
2025-08-22 14:11:18 -05:00
commit 3e9ca1a146
88 changed files with 14387 additions and 0 deletions

10
web/lib/analytics.ts Normal file
View File

@@ -0,0 +1,10 @@
export const track = (event: string, params: Record<string, any> = {}) => {
if (typeof window !== 'undefined' && (window as any).gtag) {
(window as any).gtag('event', event, params);
}
// Also log to console in development
if (process.env.NODE_ENV === 'development') {
console.log('Analytics event:', event, params);
}
};