From f8d640641e1e429dfb864226dde1d5a79c4f1fda Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 15 Aug 2023 00:14:29 +0100 Subject: [PATCH] feat: add countryId and version to Google Analytics tracking This commit adds the "countryId" and "version" parameters to the Google Analytics tracking in the info_stats.sh script. Now, when the script sends data to Google Analytics, it includes information about the country and version of LinuxGSM being used. --- lgsm/modules/info_stats.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/info_stats.sh b/lgsm/modules/info_stats.sh index 28d384631..29bd2900a 100644 --- a/lgsm/modules/info_stats.sh +++ b/lgsm/modules/info_stats.sh @@ -68,7 +68,7 @@ curl -X POST "https://www.google-analytics.com/mp/collect?api_secret=A-OzP02TSMW { \"name\": \"LinuxGSM\", \"params\": { - \"countryId\":\"${countrycode}\" + \"countryId\":\"${countrycode}\", \"cpuusedmhzroundup\": \"${cpuusedmhzroundup}MHz\", \"diskused\": \"${serverfilesdu}\", \"distro\": \"${distroname}\", @@ -83,7 +83,7 @@ curl -X POST "https://www.google-analytics.com/mp/collect?api_secret=A-OzP02TSMW \"uuidhardware\": \"${uuidhardware}\", \"uuidinstall\": \"${uuidinstall}\", \"uuidinstance\": \"${uuidinstance}\", - \"version\": \"${version}\", + \"version\": \"${version}\" } } ]