Analytics I think?

This commit is contained in:
Kasper Rynning-Tønnesen
2020-01-23 11:18:34 +01:00
parent c414a8137e
commit c974354666
6 changed files with 62 additions and 9 deletions

View File

@@ -28,6 +28,7 @@
</template>
<script>
import { page, event } from "vue-analytics";
import PurchaseGraph from "@/ui/PurchaseGraph";
import TotalBought from "@/ui/TotalBought";
import Highscore from "@/ui/Highscore";
@@ -45,6 +46,17 @@ export default {
Banner,
Wines,
Vipps
},
mounted() {
if (window.location.hostname == "localhost") {
return;
}
this.track();
},
methods: {
track() {
this.$ga.page("/");
}
}
};
</script>