it/web/lib/analytics.ts
2025-10-25 20:37:00 +02:00

2 lines
185 B
TypeScript

"use client"; export function track(e:string,p?:Record<string,unknown>){ if(typeof window!=="undefined"&&(window as any).plausible) (window as any).plausible(e,p?{props:p}:undefined);}