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() {
this.$ga.page("/generate");
this.$ga.page("/lottery/generate");
}
}
};

View File

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