diff --git a/docs/content/3.docs/2.directory-structure/10.plugins.md b/docs/content/3.docs/2.directory-structure/10.plugins.md index 182bc7a1b3..e6fae260aa 100644 --- a/docs/content/3.docs/2.directory-structure/10.plugins.md +++ b/docs/content/3.docs/2.directory-structure/10.plugins.md @@ -51,23 +51,20 @@ If you want to use Vue plugins, like [vue-gtag](https://github.com/MatteoGabriel First install the plugin you want. ```bash -yarn add --dev vue-gtag +yarn add --dev vue-gtag-next ``` Then create a plugin file `plugins/vue-gtag.client.js`. ```ts import { defineNuxtPlugin } from "#app"; -import VueGtag from "vue-gtag"; +import VueGtag from "vue-gtag-next"; export default defineNuxtPlugin((nuxtApp) => { - nuxtApp.vueApp.use(VueGtag, { - config: { - id: "GA_MEASUREMENT_ID", - params: { - anonymize_ip: true, - }, - }, + nuxtApp.vue.use(VueGtag, { + property: { + id: "GA_MEASUREMENT_ID" + } }); }); ```