ga日志优化
This commit is contained in:
parent
3bd4a88221
commit
cd303b5658
@ -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).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user