johannschopplich / nuxt-gtag

🔸 Google Analytics & Ads integration made easy
https://developers.google.com/tag-platform/gtagjs
MIT License
302 stars 9 forks source link

Using partytown to run this in worker thread #70

Closed husayt closed 6 months ago

husayt commented 6 months ago

Describe the feature

Is using partytown integration could imporve performance: https://github.com/nuxt-modules/partytown

Google analytics is one of the of example usecases in the provided repo.

Additional information

Final checks

johannschopplich commented 6 months ago

Absolutely, but Partytown is a whole other solution to provide third-party script support. Both modules serve a different purpose.

husayt commented 6 months ago

Thank you for your reply. I also noted a similar question and it seems, for partytown it is recommended to use g-tag script directly

https://github.com/johannschopplich/nuxt-gtag/discussions/25