chore: track events with props

This commit is contained in:
2023-12-10 18:40:01 +00:00
parent d00f8b0d85
commit 755ba17dab
7 changed files with 31 additions and 27 deletions

View File

@ -533,8 +533,8 @@ export function getCountry() {
};
}
export function trackEvent(event: string) {
window.plausible?.(event);
export function trackEvent(event: string, props?: Record<string, string | boolean>) {
window.plausible?.(event, props ? { props } : undefined);
}
export function storeRefCode() {