diff --git a/js/html_actuator.js b/js/html_actuator.js
index c825b5187017d0586d5410889088d649cf1531eb..f1c33083a48fc46647870f55a3ad4961a720b0dc 100644
--- a/js/html_actuator.js
+++ b/js/html_actuator.js
@@ -107,6 +107,8 @@ HTMLActuator.prototype.message = function (won) {
var type = won ? "game-won" : "game-over";
var message = won ? "You win!" : "Game over!"
+ if (ga) ga("send", "event", "game", "end", type, this.score);
+
this.messageContainer.classList.add(type);
this.messageContainer.getElementsByTagName("p")[0].textContent = message;
};