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.
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.