From 2c4fa360ad9560414794e2ed3d08050741a2ef8a Mon Sep 17 00:00:00 2001 From: "Henrik.Askjer" <henrik.askjer@uib.no> Date: Tue, 31 Aug 2021 09:02:28 +0200 Subject: [PATCH] Track query instead of label --- src/components/DictionaryView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index 6182d3b..040184a 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -211,13 +211,13 @@ export default { this.waiting_for_articles = true history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang, error: this.error}, '') navigate_to_word(this, event.match) - this.$plausible.trackEvent('dropdown selection', {props: {query: event.label, match: event.match}}) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: event.match}}) }else{ this.waiting_for_articles = true this.article = null this.$router.push(`/${this.lang}/search/${event.q}`) navigate_to_search(this, event.q) - this.$plausible.trackEvent('dropdown selection', {props: {query: event.label, match: '<fritekstsøk>'}}) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: '<fritekstsøk>'}}) } }, update_lang_form: function(event) { -- GitLab