From a88602b8ffc2db2c011d27d27864c93c80b9b3ee Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 15 Aug 2023 01:15:08 +0100 Subject: [PATCH] refactor: update event name in info_stats.sh The commit updates the event name in the info_stats.sh file from "linuxgsm" to "pageview". This change ensures that the correct event is being tracked when sending data to the stats.linuxgsm.com API. --- lgsm/modules/info_stats.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/modules/info_stats.sh b/lgsm/modules/info_stats.sh index 5832c503a..ac145a37f 100644 --- a/lgsm/modules/info_stats.sh +++ b/lgsm/modules/info_stats.sh @@ -91,7 +91,7 @@ curl -X POST "https://www.google-analytics.com/mp/collect?api_secret=A-OzP02TSMW curl -i -X POST https://stats.linuxgsm.com/api/event \ -H 'User-Agent: curl' \ -H 'Content-Type: application/json' \ - --data "{\"name\":\"linuxgsm\", + --data "{\"name\":\"pageview\", \"url\":\"https://stats.linuxgsm.com\", \"domain\":\"stats.linuxgsm.com\", \"cpuusedmhzroundup\": \"${cpuusedmhzroundup}MHz\",