Closed badrul closed 1 year ago
I recommend doing:
this.$matomo.setUserId(newUserId)
this.$matomo.trackPageView()
// or
window._paq.push(['setUserId', newUserId])
window._paq.push(['trackPageView']);
As soon as your user id becomes available.
I recommend doing:
this.$matomo.setUserId(newUserId) this.$matomo.trackPageView() // or window._paq.push(['setUserId', newUserId]) window._paq.push(['trackPageView']);
As soon as your user id becomes available.
But doesn't manually invoking trackPageView conflict with the router's automatic integration?
I have the following setup but unable correctly track userId. When user first visit, userId is undefined, after user log-in, matomo is still tracking userId as undefined unless I refresh vue page.
main.js