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,17 @@
"use client";
import { GoogleAnalytics, sendGAEvent } from "@next/third-parties/google";
const googleTagId = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID as string;
export function AnalyticsScript() {
return <GoogleAnalytics gaId={googleTagId} />;
}
export function useAnalytics() {
const trackEvent = sendGAEvent;
return {
trackEvent,
};
}