0
0
mirror of https://github.com/lipis/flag-icons.git synced 2024-11-24 19:36:55 +01:00

Switch event

This commit is contained in:
Panayiotis Lipiridis 2022-06-25 11:35:29 +03:00
parent d086049cd9
commit 2063492e36

View File

@ -74,6 +74,10 @@ const show4x3 = () => {
console.log(flag);
flag.classList.add("hide");
}
gtag("event", "switch", {
event_category: "flags",
event_label: "4x3",
});
};
const show1x1 = () => {
@ -91,6 +95,11 @@ const show1x1 = () => {
console.log(flag);
flag.classList.add("hide");
}
gtag("event", "switch", {
event_category: "flags",
event_label: "1x1",
});
};
window.onload = function () {