vuepress / ecosystem

Official plugins and themes for VuePress2
https://ecosystem.vuejs.press
MIT License
28 stars 36 forks source link

[Feature request] add `plugin-mixpanel` #97

Closed typed-sigterm closed 6 months ago

typed-sigterm commented 6 months ago

Clear and concise description of the problem

Mixpanel is a service like Baidu Analytics. But its SDK provided by mixpanel is not developer-friendly to SPA and requires manual reporting of routing change events. How about providing a vuepress plugin to extract this part of the common logic?

Suggested solution

The SDK provided by MixPanel is not developer-friendly to SPA and requires manual reporting of routing change events. How about providing a vuepress plugin to extract this part of the common logic?

Alternative

No response

Additional context

No response

typed-sigterm commented 6 months ago

Oh, it seems that we can use mixpanel.init('YOUR_TOKEN', {track_pageview: "url-with-path"});.It's not necessary to add such a plugin.