Skip to content

Commit

Permalink
Merge pull request #6 from volcengine/hotfix/anonymous_user_track_id
Browse files Browse the repository at this point in the history
hotfix(AnonymousUser): trackID不为空,仍然上报匿名id(比如web_id)
  • Loading branch information
oMinGWo authored Nov 26, 2024
2 parents 260f5e6 + b4e2f6d commit b5f1010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/util/msgbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func CreateExposureEvent(vid, uuidType string) *model.Event {

func CreateUser(trackId, uuidType string, attributes map[string]interface{},
enableAnonymousUser, isSaasEnv bool) *model.User {
if enableAnonymousUser && trackId == "" && attributes != nil {
if (enableAnonymousUser || trackId == "") && attributes != nil {
return CreateAnonymousUser(trackId, uuidType, attributes, isSaasEnv)
}
return &model.User{
Expand Down

0 comments on commit b5f1010

Please sign in to comment.