📈 Fixed tracking code
This commit is contained in:
@@ -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`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user