mixpanel-js icon indicating copy to clipboard operation
mixpanel-js copied to clipboard

What's the correct way to track_pageview on a SPA project?

Open sabres207 opened this issue 1 year ago • 2 comments

"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.

sabres207 avatar May 23 '23 13:05 sabres207