File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
lib/optimizely/event/entity Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def build
48
48
event_batch . anonymize_ip = @anonymize_ip
49
49
event_batch . enrich_decisions = @enrich_decisions
50
50
event_batch . visitors = @visitors
51
- event_batch . region = @region
51
+ event_batch . region = @region || 'US'
52
52
event_batch
53
53
end
54
54
@@ -65,7 +65,7 @@ def with_revision(revision)
65
65
end
66
66
67
67
def with_region ( region )
68
- @region = region
68
+ @region = region || 'US'
69
69
end
70
70
71
71
def with_client_name ( client_name )
Original file line number Diff line number Diff line change 69
69
revision : '42' ,
70
70
client_name : Optimizely ::CLIENT_ENGINE ,
71
71
enrich_decisions : true ,
72
- client_version : Optimizely ::VERSION
72
+ client_version : Optimizely ::VERSION ,
73
+ region : 'US'
73
74
}
74
75
75
76
@expected_conversion_payload = {
103
104
revision : '42' ,
104
105
client_name : Optimizely ::CLIENT_ENGINE ,
105
106
enrich_decisions : true ,
106
- client_version : Optimizely ::VERSION
107
+ client_version : Optimizely ::VERSION ,
108
+ region : 'US'
107
109
}
108
110
end
109
111
You can’t perform that action at this time.
0 commit comments