diff --git a/src/App.vue b/src/App.vue index a4e411b2db7c995ad61847437c265ff3fa491331..baef9e5a89fec3960d23b44920f3afd12ac14e5e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -151,13 +151,13 @@ export default { this.search_results = event.articles this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang}, '') - this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: event.match}}) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.label, match: event.match}}) }else{ this.waiting_for_articles = true this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} this.$router.push(`/${this.lang}/search/${event.q}`) navigate_to_search(this, event.q) - this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: '<fritekstsøk>'}}) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.label, match: '<fritekstsøk>'}}) } }, article_link_click: function(item) {