Skip to content

Commit 158aab3

Browse files
committed
Add region to create
1 parent 83afabe commit 158aab3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

optimizely/event_builder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ def _get_required_params_for_conversion(
249249

250250
def create_impression_event(
251251
self, project_config: ProjectConfig, experiment: Experiment,
252-
variation_id: str, user_id: str, attributes: UserAttributes
252+
variation_id: str, user_id: str, attributes: UserAttributes,
253+
region: str = 'US'
253254
) -> Event:
254255
""" Create impression Event to be sent to the logging endpoint.
255256
@@ -278,7 +279,8 @@ def create_impression_event(
278279

279280
def create_conversion_event(
280281
self, project_config: ProjectConfig, event_key: str,
281-
user_id: str, attributes: UserAttributes, event_tags: event_tag_utils.EventTags
282+
user_id: str, attributes: UserAttributes, event_tags: event_tag_utils.EventTags,
283+
region: str = 'US'
282284
) -> Event:
283285
""" Create conversion Event to be sent to the logging endpoint.
284286

0 commit comments

Comments
 (0)