From 7ac1e8af9c4e3f6a38b44f83dcea52a16754e680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Sat, 1 Apr 2023 20:30:09 +0200 Subject: [PATCH] upgrade tracking --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index c028cf0..72a5194 100644 --- a/index.js +++ b/index.js @@ -196,6 +196,7 @@ function showImages() { if (emptyindex > -1){ let changingelement = $("#" + idcko); changingelement.html(targetElement.html()); + umami.trackEvent('Clicked sign', { type: 'clicksign', datacode: $(this).getAttribute("datacode") }); } } @@ -204,6 +205,7 @@ function showImages() { let [emptyindex, idcko] = getEmptyIndex($(".finalletterplace"), this); if (emptyindex > -1){ let changingelement = $("#" + idcko); + umami.trackEvent('Clicked letter', { type: 'clickletter', datacode: $(this).getAttribute("datacode") }); changingelement.html(targetElement.html()); } @@ -211,6 +213,7 @@ function showImages() { }); $(".finalplace").on("click", function (){ + umami.trackEvent('Clicked clear', { type: 'clickclear', datacode: $(this).children()[0].getAttribute("datacode") }); $(this).html(""); });