Skip to content

Commit

Permalink
feat: add new google analytics event (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschonti authored Dec 19, 2024
1 parent cb95ca2 commit dd4f9d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit dd4f9d9

Please sign in to comment.