Skip to content

Commit b5bf3e1

Browse files
committed
Merge branch 'europeana-track-site-search'
2 parents 0e778ff + 12efcc6 commit b5bf3e1

File tree

5 files changed

+39514
-1024
lines changed

5 files changed

+39514
-1024
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,23 @@ Vue.use(VueMatomo, {
107107
// ['appendToTrackingUrl', 'new_visit=1'],
108108
// etc.
109109
// ]
110-
preInitActions: []
110+
preInitActions: [],
111+
112+
// A function to determine whether to track an interaction as a site search
113+
// instead of as a page view. If not a function, all interactions will be
114+
// tracked as page views. Receives the new route as an argument, and
115+
// returns either an object of keyword, category (optional) and resultsCount
116+
// (optional) to track as a site search, or a falsey value to track as a page
117+
// view.
118+
// Default: false, i.e. track all interactions as page views
119+
// Example: (to) => {
120+
// if (to.query.q && to.name === 'search') {
121+
// return { keyword: to.query.q, category: to.params.category }
122+
// } else {
123+
// return null
124+
// }
125+
// }
126+
trackSiteSearch: false
111127
});
112128

113129
// Now you can access piwik api in components through

0 commit comments

Comments
 (0)