From 2063492e36a32577005ce22daeb65f94aac29e14 Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Sat, 25 Jun 2022 11:35:29 +0300 Subject: [PATCH] Switch event --- assets/docs.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/docs.js b/assets/docs.js index a895d938..f2c077fc 100644 --- a/assets/docs.js +++ b/assets/docs.js @@ -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 () {