-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt support #209
Comments
I have zero experience with Nuxt 🤔 Hope I can help |
Create plugin client:
and finish |
this plugin probably won't work with nuxt3, here is the main error and config plugins/vue-gtm.client.js
error
|
#209 (comment) This error is related to #226 |
I released 2.0.0 |
@davideapvd solution works, the plugin adds the gtm code and tracking (at least a basic one) seems to work. The bit I am not being able to figure out is how to use $gtm in my pages, as I need, for example, to activate it only on an Accept click via I tried to inspect the content of useNuxtApp() but not being able to find anything. UPDATE in case someone else stumbles upon this, I found the solution on this other issue. |
You can use this module @zadigetvoltaire/nuxt-gtm, it's a wrapper of this lib for Nuxt 3 users. Enjoy ! |
Request / Idea
Hi, this is a very nice tool. I wonder do you consider to support Nuxt.js? The origional
@nuxt/gtm
never worked for me, so it would be great if vue-gtm can support nuxt. Many thanks!...
Additional Context
...
The text was updated successfully, but these errors were encountered: