vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.43k stars 4.79k forks source link

Google analytics plugin is not working with Google Analytics 4 #3215

Closed Shawyeok closed 1 month ago

Shawyeok commented 1 month ago

Bug report

With the transition from Universal Analytics to Google Analytics 4, as stated in the recent announcement from Google Analytics:

Universal Analytics has been replaced by Google Analytics 4. Unless you have a Google Analytics 360 account that is linked to a Google Marketing Platform organization with an active 360 order, any Universal Analytics property you create will not process data going forward.

For more details, visit: https://support.google.com/analytics/answer/10269537?hl=en

I am considering opening a PR to address this issue, but I noticed that VuePress is currently in maintenance mode. Could you please confirm if PRs are still welcome for such updates?

Steps to reproduce

What is expected?

After deployment, users should be able to view activity data on Google Analytics.

What is actually happening?

The Google Analytics homepage displays the message: "No data received from your website or app yet."

Other relevant information

Environment Info:

System: OS: macOS 14.4.1 CPU: (8) arm64 Apple M1 Binaries: Node: 18.14.2 - /usr/local/bin/node Yarn: 1.22.21 - /opt/homebrew/bin/yarn npm: 9.5.0 - /usr/local/bin/npm Browsers: Chrome: 124.0.6367.119 Edge: Not Found Safari: 17.4.1 npmPackages: @vuepress/core: 1.9.10 @vuepress/theme-default: 1.9.10 vuepress: ^1.5.3 => 1.9.10 npmGlobalPackages: vuepress: Not Found

Shawyeok commented 1 month ago

There's a workaround solution at https://github.com/vuejs/vuepress/issues/2713#issuecomment-806621348, close it.