ga日志优化

This commit is contained in:
hahwu 2025-11-28 15:23:11 +08:00
parent 14807a52ed
commit 0e425f0355

View File

@ -1,6 +1,8 @@
package ga
import (
"fmt"
galog "github.com/tuyou/galog"
)
@ -22,7 +24,7 @@ func init() {
func GAlogEvent(event string, userID string, deviceID string, properties map[string]interface{}) {
newProperties := make(map[string]interface{})
for k, v := range properties {
newProperties["proj_"+k] = v
newProperties["proj_"+k] = fmt.Sprintf("%v", v)
}
properties = newProperties
glogger.