Correct tracking

This commit is contained in:
Kasper Rynning-Tønnesen
2020-03-16 15:23:36 +01:00
parent 0afa60ca58
commit 78752627ec
3 changed files with 7 additions and 2 deletions

View File

@@ -206,7 +206,7 @@ export default {
} }
}, },
track() { track() {
this.$ga.page("/generate"); this.$ga.page("/lottery/generate");
} }
} }
}; };

View File

@@ -34,6 +34,7 @@
</template> </template>
<script> <script>
import { page, event } from "vue-analytics";
import { attendees, winners } from "@/api"; import { attendees, winners } from "@/api";
import Chat from "@/ui/Chat"; import Chat from "@/ui/Chat";
import Vipps from "@/ui/Vipps"; import Vipps from "@/ui/Vipps";
@@ -61,6 +62,7 @@ export default {
}; };
}, },
mounted() { mounted() {
this.track();
this.getAttendees(); this.getAttendees();
this.getWinners(); this.getWinners();
this.socket = io(`${window.location.hostname}:${window.location.port}`); this.socket = io(`${window.location.hostname}:${window.location.port}`);
@@ -139,6 +141,9 @@ export default {
this.attendees = response; this.attendees = response;
} }
this.attendeesFetched = true; this.attendeesFetched = true;
},
track() {
this.$ga.page("/lottery/game");
} }
} }
}; };

View File

@@ -13,7 +13,7 @@
<span v-if="amount * price > price"> <span v-if="amount * price > price">
kr. kr.
<span class="big-money">{{ amount * price }},-</span> <span class="big-money">{{ amount * price }},-</span>
{{ price }},- pr. lodd) ({{ price }},- pr. lodd)
</span> </span>
<span v-if="amount * price == price"> <span v-if="amount * price == price">
kr. kr.