This commit is contained in:
 Илья Шалонин 2025-10-29 13:43:43 +05:00
commit 8538ab969a
434 changed files with 44051 additions and 0 deletions

View file

@ -0,0 +1,20 @@
"use client";
// @ts-expect-error package is not installed per default
import { track } from "@vercel/analytics";
// @ts-expect-error package is not installed per default
import { Analytics } from "@vercel/analytics/react";
export function AnalyticsScript() {
return <Analytics />;
}
export function useAnalytics() {
const trackEvent = (event: string, data?: Record<string, unknown>) => {
track(event, data);
};
return {
trackEvent,
};
}