You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use custom event/goal tracking with a self-hosted Matomo instance and I cannot get it to work properly. Page views are being tracked, but whenever I try to use the proxy._paq.push() method, nothing happens. I attached a small example project to this issue that shows the problem (I was unable to use StackBlitz because the provided starter always failed to fetch dependencies in my case).
If I don't use the proxy but instead choose to use the _paq object directly, the events/goals are being tracked, so I suspect the proxy-mechanism does not work in my case. This happens in dev and prod builds.example.zip
🛠️ To reproduce
see attached project
🌈 Expected behavior
Custom goals and events being tracked.
ℹ️ Additional context
Nuxt 3.14.159
Scripts 0.9.5
The text was updated successfully, but these errors were encountered:
did you figure out how to fix it? i seem to have the same issue. no events showing up in backend and as far as i can see also nothing in the network tab
@flomero using the _paq object without the proxy (either via window or directly) worked in my case as well, but I'd like to leverage the proxy object as it integrates with cookie consent etc.
🐛 The bug
Hey guys,
I am trying to use custom event/goal tracking with a self-hosted Matomo instance and I cannot get it to work properly. Page views are being tracked, but whenever I try to use the proxy._paq.push() method, nothing happens. I attached a small example project to this issue that shows the problem (I was unable to use StackBlitz because the provided starter always failed to fetch dependencies in my case).
If I don't use the proxy but instead choose to use the _paq object directly, the events/goals are being tracked, so I suspect the proxy-mechanism does not work in my case. This happens in dev and prod builds.example.zip
🛠️ To reproduce
see attached project
🌈 Expected behavior
Custom goals and events being tracked.
ℹ️ Additional context
Nuxt 3.14.159
Scripts 0.9.5
The text was updated successfully, but these errors were encountered: