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

re meta#233 logger også artikkel-url, siden flere artikler kan være vist

parent e5ad2339
No related branches found
No related tags found
No related merge requests found
<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>
......
......@@ -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
}
......
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