You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the issue. You should understand that Nuxt Scripts's performance optimizations are micro at best, they just allow Nuxt to start before loading in other scripts.
The fact is you're still loading in 104kb of scripts just for GTM, for reference Nuxt itself is only like ~50kb iirc.
My suggestion is to drop GTM if you're only using it as a container for GA, then wait for either one of these that will provide significant improvements:
📚 What are you trying to do?
As I understand it, @nuxt/script should give better performance using the embedded third-party scripts.
However when I use GTM or GoogleAnalytics I see the same hit in PageSpeed reports as using the "vanilla" scripts:
I've done the simple implementation of adding this in my App.vue:
GTM:
Google Analytics:
Have I misunderstood the concept of this package?
🔍 What have you tried?
No response
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: