There has been many improvements in Nuxt3 one of those is the use of plugins in the application. Nuxt will automatically read the files in your plugins directory and load them.
This are auto registered with your nuxt application, you no longer need to define them in the nuxt.config file. This will allow us to create a Google analytics plugin that will only run on the client of the application.
When you run your website on the client code you'll see Google Analytics has been imported into your website.