Skip to content

Commit

Permalink
Merge branch 'europeana-track-site-search'
Browse files Browse the repository at this point in the history
  • Loading branch information
AmazingDreams committed Jul 11, 2021
2 parents 0e778ff + 12efcc6 commit b5bf3e1
Show file tree
Hide file tree
Showing 5 changed files with 39,514 additions and 1,024 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,23 @@ Vue.use(VueMatomo, {
// ['appendToTrackingUrl', 'new_visit=1'],
// etc.
// ]
preInitActions: []
preInitActions: [],

// A function to determine whether to track an interaction as a site search
// instead of as a page view. If not a function, all interactions will be
// tracked as page views. Receives the new route as an argument, and
// returns either an object of keyword, category (optional) and resultsCount
// (optional) to track as a site search, or a falsey value to track as a page
// view.
// Default: false, i.e. track all interactions as page views
// Example: (to) => {
// if (to.query.q && to.name === 'search') {
// return { keyword: to.query.q, category: to.params.category }
// } else {
// return null
// }
// }
trackSiteSearch: false
});

// Now you can access piwik api in components through
Expand Down
Loading

0 comments on commit b5bf3e1

Please sign in to comment.