diff --git a/app/Analytics.tsx b/app/Analytics.tsx new file mode 100644 index 000000000..b7fe9549d --- /dev/null +++ b/app/Analytics.tsx @@ -0,0 +1,30 @@ +'use client'; + +import { usePathname } from 'lib/i18n/navigation'; +import { init } from 'lib/utils/analytics'; +import Script from 'next/script'; +import { useEffect } from 'react'; + +const Analytics = () => { + const path = usePathname(); + + // Mixpanel + useEffect(() => { + init(); + // track('Viewed Page', { path }); + }, []); + + // SimpleAnalytics + return ( + <> + +