ga日志优化

This commit is contained in:
hahwu 2025-11-25 14:55:03 +08:00
parent 3bd4a88221
commit cd303b5658

View File

@ -20,6 +20,11 @@ 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
}
properties = newProperties
glogger.
GetEntry(event).
SetDeviceID(deviceID).