diff --git a/src/components/Article.vue b/src/components/Article.vue index 3567595c7166917429bb742a0eafd75776d26dff..89f00cf07981441e3c4309560f259d74b8936b5c 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -1,6 +1,6 @@ <template> <article v-show="article.lemmas.length || article.error"> - <Header :lemmas="article.lemmas" :dictionary="dictionary" /> + <Header :lemmas="article.lemmas" :dictionary="dictionary" :article_id="article.article_id" /> <section v-if="! article.error && article.body.pronunciation && article.body.pronunciation.length"> <h3>Uttale</h3> <ul> diff --git a/src/components/Header.vue b/src/components/Header.vue index da3ea2a14d0de2c569710f3bb1421cd93d375eb8..a469e5187100d2d052f2f8d521158b658c4a7e0a 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -38,7 +38,8 @@ export default { name: 'Header', props: { lemmas: Array, - dictionary: String + dictionary: String, + article_id: Number }, computed: { group_list: function() { @@ -79,7 +80,7 @@ export default { methods: { toggle: function()Â { if (! this.inflect_reported) { - this.$plausible.trackEvent('open inflection') + this.$plausible.trackEvent('open inflection', {props: {article: `/${this.dictionary}/${this.article_id}/${this.lemmas[0].lemma}`}}) } this.inflect_reported = true }