feat: send events to Google Analytics 4

This commit is contained in:
lilong.129
2023-07-20 21:56:58 +08:00
parent c3a4e18f17
commit bfc553b9d5
2 changed files with 215 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package sdk
import (
"testing"
)
func TestGA4(t *testing.T) {
ga4Client := NewGA4Client(ga4MeasurementID, ga4APISecret, false)
event := Event{
Name: "hrp_debug_event",
Params: map[string]interface{}{},
}
ga4Client.SendEvent(event)
}