diff --git a/src/main.tsx b/src/main.tsx index 967f983d..0ce356e5 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,8 +1,9 @@ import { createRoot } from 'react-dom/client'; import './main.css'; import App from './App.tsx'; -import { initGA } from './lib/ga.ts'; +import { initGA, sendPageView } from './lib/ga.ts'; initGA(); +sendPageView(window.location.pathname); createRoot(document.getElementById('root')!).render();