feat: report GA events with version

This commit is contained in:
debugtalk
2021-12-22 20:13:40 +08:00
parent e428a7b6b5
commit fe9c4617fc
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -20,11 +20,11 @@ func TestStructToUrlValues(t *testing.T) {
event := EventTracking{
Category: "unittest",
Action: "convert",
Label: "StructToUrlValues",
Label: "v0.3.0",
Value: "123",
}
val := structToUrlValues(event)
if val.Encode() != "ea=convert&ec=unittest&el=StructToUrlValues&ev=123" {
if val.Encode() != "ea=convert&ec=unittest&el=v0.3.0&ev=123" {
t.Fail()
}
}