From dd4f9d9454652ad1ee0bec7ef65028b7c2797044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1muel=20Fekete?= Date: Thu, 19 Dec 2024 15:45:46 +0100 Subject: [PATCH] feat: add new google analytics event (#148) --- src/components/Map/Map.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Map/Map.tsx b/src/components/Map/Map.tsx index 2ff9bdb0..85f069c1 100644 --- a/src/components/Map/Map.tsx +++ b/src/components/Map/Map.tsx @@ -94,6 +94,7 @@ export default function Map({ countries, disputedAreas, fcsData, alertData }: Ma window.gtag('event', `${selectedCountryData.properties.iso3}_country_selected`, { selectedMap: selectedMapType, }); + window.gtag('event', `${selectedCountryData.properties.iso3} _${selectedMapType}_countrymap_selected`); setSelectedCountryName(selectedCountryData.properties.adm0_name); mapRef.current?.fitBounds(L.geoJSON(selectedCountryData as GeoJSON).getBounds(), { animate: true }); }