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> <template>
<article v-show="article.lemmas.length || article.error"> <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"> <section v-if="! article.error && article.body.pronunciation && article.body.pronunciation.length">
<h3>Uttale</h3> <h3>Uttale</h3>
<ul> <ul>
......
...@@ -38,7 +38,8 @@ export default { ...@@ -38,7 +38,8 @@ export default {
name: 'Header', name: 'Header',
props: { props: {
lemmas: Array, lemmas: Array,
dictionary: String dictionary: String,
article_id: Number
}, },
computed: { computed: {
group_list: function() { group_list: function() {
...@@ -79,7 +80,7 @@ export default { ...@@ -79,7 +80,7 @@ export default {
methods: { methods: {
toggle: function() { toggle: function() {
if (! this.inflect_reported) { 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 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