add tracking
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user