diff --git a/src/App.vue b/src/App.vue index 809118a34582e1b314b08f49a33206687ead3190..f8c9a769f0219aed88101409004302a012372931 100644 --- a/src/App.vue +++ b/src/App.vue @@ -232,6 +232,12 @@ export default { history.replaceState({article: self.article, search_results: self.search_results, lang: self.lang}, '') } }) + }, + watch: { + $route() { + console.log(this.$route.params.lang) + this.$plausible.trackEvent('language', {props: {code: this.$route.params.lang}}) + } } } </script>