AmazingDreams / vue-matomo

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

Track site search #93

Closed rwd closed 3 years ago

rwd commented 3 years ago

This adds a new option trackSiteSearch which supports app-specific logic to determine that a particular user interaction should be tracked as a site search instead of as a page view.

While Matomo can detect that an interaction is a site search based on URL query parameters, this is not always sufficient, for instance if the search category is in the Vue route params instead of in the query, or if one wants to also track the resultsCount.

AmazingDreams commented 3 years ago

Thanks! Released in v4.1.0 https://github.com/AmazingDreams/vue-matomo/releases/tag/v4.1.0