-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
How to make it work with Nuxt 3? #121
Comments
Hi @maxbellec ,
Works for me without any problems. U should consider to upgrade to the latest Nuxt RC too, because you are still in beta right? |
Thanks, but how to access $matomo in a component?
|
@thorau Have you found a solution for it ? |
Unfortunately it doesn't work somehow. Debug window doesn't open either when you write debug: true. And in Matomo I don't see any activity |
Hi @vincent41 I managed to make it work using Matomo as Nuxt plugin. I have it in the plugins folder (will be automatic initialized) as i use this configuration:
No need to make any other changes, and this is enough for what I need, maybe it helps you to get it working. Can you send your actual code ? Would help to understand your problem better |
Hello @makerovski, Thanks for your answer, something is definitely happening. But it's not like I would normally include the script. something is different for example,if I set debug: true and in the url https://domain.de/?mtmPreviewMode=1XybHsKe I don't see a preview window for it. Is it normal? |
Hello @vincent41, May I see your code ? |
Thanks for that! BUT i get a new hit every time i click on a menu item as it would be a new person. I deleted the |
Hello @maxbellec How do you access to $matomo with your configuration ? Do you have samples ? Thank's. |
Remember that its nuxtApp.$router and not nuxtApp.router |
Hi guys, I wonder if there is a way to send the event to matomo API sometimes after the route change or listen on the meta change event like what this library does? https://github.com/pimlie/nuxt-matomo?tab=readme-ov-file#caveats |
Hi Guys, I Managed it using the thid code, with that I can change some Matomo properties
It shows an error but it works |
Hello,
Sorry if this question seems dumb, but I'm having a hard time getting this to work. As documented, I have my plugin in the Nuxt
plugin
folder.analytics.client.ts
My
console.log
is printed to the console, so thevueApp.use(VueMatomo, ...)
should be run, but nothing else happens. I had hoped the withdebug: true
I would have some info that matomo is starting or having issue, but I don't get anything. My Chrome plugins are disabled, and I don't have any other warning / error in the console.Since this plugin works with Vue 3, I don't see any reason that Nuxt 3 would get in the way.
I am on Nuxt
3.0.0-27420403.16e2a54
and Vue3.2.31
.The text was updated successfully, but these errors were encountered: