mixpanel-js
mixpanel-js copied to clipboard
What's the correct way to track_pageview on a SPA project?
"mixpanel-browser": "^2.45.0", "react": "^17.0.1"
I have a react project, and I understand the track_pageview flag is not designed to work for a single-page application.
I've seen you write to call directly too mixpanel.track_pageview(), but I don't find it in the docs, and it doesn't work. I see in the source code it just calling track() with some information about the current url, but thought maybe I'm missing something here.
Thanks.