Browse Source

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.
pull/4295/head
Daniel Gibbs 2 years ago
parent
commit
f8d640641e
  1. 4
      lgsm/modules/info_stats.sh

4
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\", \"name\": \"LinuxGSM\",
\"params\": { \"params\": {
\"countryId\":\"${countrycode}\" \"countryId\":\"${countrycode}\",
\"cpuusedmhzroundup\": \"${cpuusedmhzroundup}MHz\", \"cpuusedmhzroundup\": \"${cpuusedmhzroundup}MHz\",
\"diskused\": \"${serverfilesdu}\", \"diskused\": \"${serverfilesdu}\",
\"distro\": \"${distroname}\", \"distro\": \"${distroname}\",
@ -83,7 +83,7 @@ curl -X POST "https://www.google-analytics.com/mp/collect?api_secret=A-OzP02TSMW
\"uuidhardware\": \"${uuidhardware}\", \"uuidhardware\": \"${uuidhardware}\",
\"uuidinstall\": \"${uuidinstall}\", \"uuidinstall\": \"${uuidinstall}\",
\"uuidinstance\": \"${uuidinstance}\", \"uuidinstance\": \"${uuidinstance}\",
\"version\": \"${version}\", \"version\": \"${version}\"
} }
} }
] ]

Loading…
Cancel
Save