Replies: 1 comment 2 replies
-
This is how I currently do it const router = getRouter(queryClient);
const Root = (
<StrictMode>
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
</StrictMode>
);
root.render(Root);
router.history.subscribe(() => {
const url = router.history.location.href
// your Favorite Analytics code here
}); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to use GA to track page viewed.
Beta Was this translation helpful? Give feedback.
All reactions