📈 Fixed tracking code

This commit is contained in:
Mawoka
2023-01-26 21:28:28 +01:00
parent ffec1c3489
commit 0083b1552a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
} else { } else {
const data = await res.json(); const data = await res.json();
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
plausible('Started Game', { props: { quiz_id: id } }); plausible('Started Game', { props: { quiz_id: id, game_id: data.game_id } });
window.location.assign(`/admin?token=${data.game_id}&pin=${data.game_pin}&connect=1`); window.location.assign(`/admin?token=${data.game_id}&pin=${data.game_pin}&connect=1`);
} }
}; };
+1 -1
View File
@@ -72,7 +72,7 @@
socket.on('joined_game', (data) => { socket.on('joined_game', (data) => {
gameData = data; gameData = data;
// eslint-disable-next-line no-undef // eslint-disable-next-line no-undef
plausible('Joined Game', { props: { quiz_id: gameData.quiz_id } }); plausible('Joined Game', { props: { game_id: gameData.game_id } });
}); });
socket.on('game_not_found', () => { socket.on('game_not_found', () => {