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.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners