diff --git a/templates/admin.html b/templates/admin.html
index 9777736..eb47de8 100755
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -35,6 +35,7 @@
$("#send").click(function(){
data = $("#ins").val();
if(data != ""){
+ umami.trackEvent('Admin send chat message', { type: 'chatadminmessage', code: kod});
$.post("index.php?chat=1&send=1",
{
text: data
diff --git a/templates/langSelector.js b/templates/langSelector.js
index 5f1144e..e9323ea 100644
--- a/templates/langSelector.js
+++ b/templates/langSelector.js
@@ -1,4 +1,5 @@
function SetLang(lang) {
+ umami.trackEvent('Language changed', { type: 'lang', lang: lang });
$.get("index.php?setLang=" + lang, function(data, status){
location.reload();
});
diff --git a/templates/login.html b/templates/login.html
index fd33012..5f60ccc 100755
--- a/templates/login.html
+++ b/templates/login.html
@@ -39,6 +39,7 @@
}
else if(data == "admin"){
+ umami.trackEvent('Admin login', { type: 'adminlogin', code: kod });
$.post("index.php",
{
kod: kod,
@@ -50,11 +51,13 @@
});
}
else{
+ umami.trackEvent('Bad code', { type: 'badcode', code: kod });
$("#error").fadeIn();
}
});
});
$("#back").click(function() {
+ umami.trackEvent('Back button', { type: 'loginback' });
$("#secondQuestion").fadeOut("slow", function(){
$("#firstQuestion").fadeIn("slow", function(){
$("#kod").focus();
@@ -64,6 +67,7 @@
$("#send").click(function() {
inic = $("#ini").val();
listeners = $("#listeners").val();
+ umami.trackEvent('Normal login ', { type: 'login', code: kod, listeners: listeners, initials: inic });
$.post("index.php",
{
kod: kod,
diff --git a/templates/player.html b/templates/player.html
index a87787a..210aa86 100755
--- a/templates/player.html
+++ b/templates/player.html
@@ -46,6 +46,7 @@
data = $("#ins").val();
Getc();
if(data != ""){
+ umami.trackEvent('Send chat message', { type: 'chatmessage', code: kod});
$.post("index.php?chat=1&send=1",
{
text: data