Commit 5dbe234c authored by Henrik Askjer's avatar Henrik Askjer
Browse files

bring back plausible

parent a31dc85b
......@@ -11,12 +11,13 @@
"axios": "^0.21.1",
"core-js": "~3.6.5",
"debounce": "^1.2.1",
"inflection-table": "https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/1.0.8/raw/module.tar.gz?job=publish",
"inflection-table": "https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/1.0.12/raw/module.tar.gz?job=publish",
"vue": "^2.6.12",
"vue-i18n": "^8.26.7",
"vue-i18n-bridge": "^9.2.0-beta.10",
"vue-material-design-icons": "^4.11.0",
"vue-meta": "^2.4.0",
"vue-plausible": "^1.3.1",
"vue-router": "^3.5.1",
"vuetify": "^2.5.8",
"vuex": "^3.6.2"
......@@ -8134,9 +8135,9 @@
"dev": true
},
"node_modules/inflection-table": {
"version": "1.0.8",
"resolved": "https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/1.0.8/raw/module.tar.gz?job=publish",
"integrity": "sha512-1OUvvhOV+iaIrv8SbZY6JMJXq0Ru+7YAmnad0LntJEbmkH0ZZSe+w6CxapN72gOfnfqWOrSQ6C0/CzE15p4lQg==",
"version": "1.0.12",
"resolved": "https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/1.0.12/raw/module.tar.gz?job=publish",
"integrity": "sha512-tpOQyANSxsCPYIH0eWUF+48mjEZemZjng/DQMf2ks+kPR9lm0MepwcwebYPZ3k69PT8WlMG15uKEaPlU26/+dg==",
"dependencies": {
"core-js": "~3.6.5",
"jquery": "^3.5.1",
......@@ -10339,6 +10340,14 @@
"node": ">=8"
}
},
"node_modules/plausible-tracker": {
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.5.tgz",
"integrity": "sha512-6c6VPdPtI9KmIsfr8zLBViIDMt369eeaNA1J8JrAmAtrpSkeJWvjwcJ+cLn7gVJn5AtQWC8NgSEee2d/5RNytA==",
"engines": {
"node": ">=10"
}
},
"node_modules/pluralize": {
"version": "7.0.0",
"integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==",
......@@ -14223,6 +14232,14 @@
"node": ">=0.10.0"
}
},
"node_modules/vue-plausible": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/vue-plausible/-/vue-plausible-1.3.1.tgz",
"integrity": "sha512-OqZiScz/7glitE4XSJTwGUHO31VEbba2efmLki0+rIGDx3NysSOBJMyFz6yBFPWKms4jb1lDmx1wCsbAl7mrtA==",
"dependencies": {
"plausible-tracker": "^0.3.4"
}
},
"node_modules/vue-router": {
"version": "3.5.2",
"integrity": "sha512-807gn82hTnjCYGrnF3eNmIw/dk7/GE4B5h69BlyCK9KHASwSloD1Sjcn06zg9fVG4fYH2DrsNBZkpLtb25WtaQ=="
......@@ -21444,8 +21461,8 @@
"dev": true
},
"inflection-table": {
"version": "https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/1.0.8/raw/module.tar.gz?job=publish",
"integrity": "sha512-1OUvvhOV+iaIrv8SbZY6JMJXq0Ru+7YAmnad0LntJEbmkH0ZZSe+w6CxapN72gOfnfqWOrSQ6C0/CzE15p4lQg==",
"version": "https://git.app.uib.no/api/v4/projects/16442/jobs/artifacts/1.0.12/raw/module.tar.gz?job=publish",
"integrity": "sha512-tpOQyANSxsCPYIH0eWUF+48mjEZemZjng/DQMf2ks+kPR9lm0MepwcwebYPZ3k69PT8WlMG15uKEaPlU26/+dg==",
"requires": {
"core-js": "~3.6.5",
"jquery": "^3.5.1",
......@@ -23154,6 +23171,11 @@
"find-up": "^4.0.0"
}
},
"plausible-tracker": {
"version": "0.3.5",
"resolved": "https://registry.npmjs.org/plausible-tracker/-/plausible-tracker-0.3.5.tgz",
"integrity": "sha512-6c6VPdPtI9KmIsfr8zLBViIDMt369eeaNA1J8JrAmAtrpSkeJWvjwcJ+cLn7gVJn5AtQWC8NgSEee2d/5RNytA=="
},
"pluralize": {
"version": "7.0.0",
"integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==",
......@@ -26246,6 +26268,14 @@
}
}
},
"vue-plausible": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/vue-plausible/-/vue-plausible-1.3.1.tgz",
"integrity": "sha512-OqZiScz/7glitE4XSJTwGUHO31VEbba2efmLki0+rIGDx3NysSOBJMyFz6yBFPWKms4jb1lDmx1wCsbAl7mrtA==",
"requires": {
"plausible-tracker": "^0.3.4"
}
},
"vue-router": {
"version": "3.5.2",
"integrity": "sha512-807gn82hTnjCYGrnF3eNmIw/dk7/GE4B5h69BlyCK9KHASwSloD1Sjcn06zg9fVG4fYH2DrsNBZkpLtb25WtaQ=="
......
......@@ -958,6 +958,7 @@ The Norwegian Language Collections at the University of Bergen Library have a nu
<li><a href="https://ordbokene.no/">https://ordbokene.no/</a></li>
<li><a href="https://oda.uib.no/">https://oda.uib.no/</a></li>
<li><a href="https://odd.uib.no/">https://odd.uib.no/</a></li>
<li><a href="https://plausible.io/">https://plausible.io/</a></li>
</ul></p>
</details>
......@@ -1532,6 +1533,7 @@ The Norwegian Language Collections at the University of Bergen Library have a nu
<li><a href="https://ordbokene.no/">https://ordbokene.no/</a></li>
<li><a href="https://oda.uib.no/">https://oda.uib.no/</a></li>
<li><a href="https://odd.uib.no/">https://odd.uib.no/</a></li>
<li><a href="https://plausible.io/">https://plausible.io/</a></li>
</ul></p>
</details>
<details>
......
......@@ -211,7 +211,7 @@ function navigate_to_article(self, origin) {
.then(function(response){
self.waiting_for_articles = false
self.replace_history()
//if (origin) self.$plausible.trackEvent('internal link incoming', {props: {origin}})
if (origin) self.$plausible.trackEvent(' incoming', {props: {origin}})
})
}
......@@ -615,12 +615,12 @@ export default {
},
inflection_link: function (word) {
//this.$plausible.trackEvent('inflection link', {props: {lang: this.previous.params.lang, from: this.previous.query.q, to: word}})
this.$plausible.trackEvent('inflection link', {props: {lang: this.previous.params.lang, from: this.previous.query.q, to: word}})
this.event = null
navigate_to_query(this, word)
},
similar_link: function () {
//this.$plausible.trackEvent('similar link', {props: {lang: this.previous.params.lang, from: this.previous.query.q, to: word}})
this.$plausible.trackEvent('similar link', {props: {lang: this.previous.params.lang, from: this.previous.query.q, to: word}})
this.event = null
navigate_to_query(this, this.queryString)
},
......@@ -648,7 +648,7 @@ export default {
// Tracking
let track_props = {query: event.q}
if (event.match) track_props.match = event.match
//this.$plausible.trackEvent('dropdown selection', { props: track_props })
this.$plausible.trackEvent('dropdown selection', { props: track_props })
},
pos_param: function() {
......
......@@ -49,7 +49,7 @@ export default {
toggle: function() {
this.inflection_expanded = !this.inflection_expanded
if (! this.inflect_reported) {
//this.$plausible.trackEvent('open inflection', {props: {article: `/${this.dictionary}/${this.article_id}/${this.lemmas[0].lemma}`}})
this.$plausible.trackEvent('open inflection', {props: {article: `/${this.dictionary}/${this.article_id}/${this.lemmas[0].lemma}`}})
}
this.inflect_reported = true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment