diff --git a/.gitignore b/.gitignore index 193e7fdd..8303cd42 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore packages/sdk/profileId.txt packages/sdk/test.ts +dump.sql # Logs diff --git a/apps/test/src/pages/_app.tsx b/apps/test/src/pages/_app.tsx index 3a6c316e..a27e8894 100644 --- a/apps/test/src/pages/_app.tsx +++ b/apps/test/src/pages/_app.tsx @@ -3,10 +3,11 @@ import { mixan } from '@/analytics'; import type { AppProps } from 'next/app'; import { useRouter } from 'next/router'; +mixan.init(); + export default function MyApp({ Component, pageProps }: AppProps) { const router = useRouter(); useEffect(() => { - mixan.init(); return router.events.on('routeChangeComplete', () => { mixan.screenView(); }); diff --git a/apps/test/src/pages/test.tsx b/apps/test/src/pages/test.tsx index 8d670b4e..300908d5 100644 --- a/apps/test/src/pages/test.tsx +++ b/apps/test/src/pages/test.tsx @@ -1,9 +1,53 @@ +import { mixan } from '@/analytics'; import Link from 'next/link'; export default function Test() { return (