diff --git a/package-lock.json b/package-lock.json index f8b2918..ef8cf7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10326,6 +10326,11 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-2.6.11.tgz", "integrity": "sha512-VfPwgcGABbGAue9+sfrD4PuwFar7gPb1yl1UK1MwXoQPAw0BKSqWfoYCT/ThFrdEVWoI51dBuyCoiNU9bZDZxQ==" }, + "vue-analytics": { + "version": "5.22.1", + "resolved": "https://registry.npmjs.org/vue-analytics/-/vue-analytics-5.22.1.tgz", + "integrity": "sha512-HPKQMN7gfcUqS5SxoO0VxqLRRSPkG1H1FqglsHccz6BatBatNtm/Vyy8brApktZxNCfnAkrSVDpxg3/FNDeOgQ==" + }, "vue-hot-reload-api": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", diff --git a/package.json b/package.json index 59c87ba..5ab09d7 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "passport-local": "^1.0.0", "passport-local-mongoose": "^6.0.1", "vue": "~2.6", + "vue-analytics": "^5.22.1", "vue-router": "~3.0", "vuex": "^3.1.1" }, diff --git a/src/components/GeneratePage.vue b/src/components/GeneratePage.vue index b82b009..b875dc8 100644 --- a/src/components/GeneratePage.vue +++ b/src/components/GeneratePage.vue @@ -1,9 +1,7 @@ diff --git a/src/ui/Wines.vue b/src/ui/Wines.vue index 974dae7..2983ea9 100644 --- a/src/ui/Wines.vue +++ b/src/ui/Wines.vue @@ -3,22 +3,25 @@

Topp viner

  1. - {{ wine.name }} - sett {{ wine.occurences }} ganger, - {{ wine.rating }} i rating + + {{ wine.name }} - sett {{ wine.occurences }} ganger, + {{ wine.rating }} i rating + {{ wine.name }} - sett {{ wine.occurences }} ganger, - {{ wine.rating }} i rating + {{ wine.name }} - sett {{ wine.occurences }} ganger, + {{ wine.rating }} i rating +
diff --git a/src/vinlottis-init.js b/src/vinlottis-init.js index 113b8e2..545ff89 100644 --- a/src/vinlottis-init.js +++ b/src/vinlottis-init.js @@ -2,8 +2,12 @@ import Vue from "vue"; import VueRouter from "vue-router"; import { routes } from "@/routes/vinlottisRouter"; import Vinlottis from "@/Vinlottis"; +import VueAnalytics from "vue-analytics"; Vue.use(VueRouter); +Vue.use(VueAnalytics, { + id: "UA-156846886-1" +}); const router = new VueRouter({ routes: routes