2 lines
185 B
TypeScript
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);}
|