AmazingDreams / vue-matomo

Vue plugin for Matomo Analytics
MIT License
278 stars 61 forks source link

How to Update A Custom Variable with out track a New Action? #85

Closed Vignesh-cgs closed 3 years ago

Vignesh-cgs commented 3 years ago

How to Update A Custom Variable without track a New Action?

I have Used Nuxt js. I Need to Update a Custome Variable in action. I have used the 'this.$matomo.ping()' method it works fine in the 'Visit' custom Variable. But Not updating a custom Variable in action.

by default automatically track an action. this.$matomo.trackPageView() this method is track a duplicate action with custom variable.

How do I update without duplicates action?

AmazingDreams commented 3 years ago

Matomo uses the trackPageView action everywhere in the docs, I don't know of another way. Perhaps someone else might.

Maybe you can use trackEvent, or trackPageView with a title like 'TriggerUpdateVariables' which you can exclude from reports.