refactor: replace GA with GA4

This commit is contained in:
lilong.129
2023-07-20 23:29:49 +08:00
parent 503b3fd38f
commit 17b6d95b3b
8 changed files with 48 additions and 51 deletions
+1 -4
View File
@@ -55,10 +55,7 @@ func CopyFile(templateFile, targetFile string) error {
func CreateScaffold(projectName string, pluginType PluginType, venv string, force bool) error {
// report event
sdk.SendEvent(sdk.EventTracking{
Category: "Scaffold",
Action: "hrp startproject",
})
sdk.SendGA4Event("hrp_startproject", nil)
log.Info().
Str("projectName", projectName).