Skip to content
Snippets Groups Projects
Commit 6867dd1e authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

plausible-logging av språk

parent 7f1faa42
No related branches found
No related tags found
No related merge requests found
...@@ -232,6 +232,12 @@ export default { ...@@ -232,6 +232,12 @@ export default {
history.replaceState({article: self.article, search_results: self.search_results, lang: self.lang}, '') 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> </script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment