nuxt / scripts

Third-Party Scripts Meets Nuxt Developer Experience.
https://scripts.nuxt.com
MIT License
316 stars 42 forks source link

Server side GA4 #238

Open oritwoen opened 2 months ago

oritwoen commented 2 months ago

🆒 Your use case

So far I have been using Cloudflare Zaraz which collects data on the server side.

Such data collection is independent of blockers and cookies and other elements. Thanks to this, statistics are more stable and are usually not affected by the browser quite strongly.

I have noticed a really huge problem and a huge drop in views and stability of data collection when moving GA4 from Cloudflare Zaraz to Nuxt Scripts.

It would be great if in the future there was a possibility of collecting data using server-side as it is described for example here:

https://developers.google.com/tag-platform/learn/sst-fundamentals/5-sst-setup-analytics

For now, unfortunately, I am returning to Cloudflare Zaraz with most scripts because then everything is more stable and less blocked.

🆕 The solution you'd like

https://developers.google.com/tag-platform/learn/sst-fundamentals/5-sst-setup-analytics

🔍 Alternatives you've considered

No response

ℹī¸ Additional info

No response

harlan-zw commented 2 months ago

Thanks for your feedback.

This is planned https://github.com/nuxt/scripts/issues/87.