@@ -146,6 +146,10 @@ def create_flags(self):
146
146
self .flag_exp_promotion_banner ()
147
147
print (" - D2 - Feature Experiment: Suggested Items Carousel" )
148
148
self .flag_exp_suggestions_carousel ()
149
+ print (" - D3 - Funnel Experiment: New Shorten Collection Page" )
150
+ self .flag_exp_shorten_collections_page ()
151
+ print (" - D4 - Feature Experiment: New Search Engine" )
152
+ self .flag_exp_new_search_engine ()
149
153
print (" - E1 - Migration: Database (Migration Tool)" )
150
154
self .flag_database_migration ()
151
155
@@ -270,9 +274,9 @@ def run_ecommerce_collection_banner_funnel_experiment(self):
270
274
"production" ,
271
275
"Turn on flag for experiment" ,
272
276
)
273
- print (" - 09 - Funnel Experiment: Promotion Banner " )
277
+ print (" - 09 - (Bayesian) Funnel Experiment: New Collection Promotion Banner" )
274
278
self .create_ecommerce_collection_banner_funnel_experiment ()
275
- self .ldproject .start_exp_iteration ("grow-engagement-with -promotion-banner" , "production" )
279
+ self .ldproject .start_exp_iteration ("new-collection -promotion-banner" , "production" )
276
280
print ("Done" )
277
281
self .experiment_created = True
278
282
@@ -282,8 +286,8 @@ def create_ecommerce_collection_banner_funnel_experiment(self):
282
286
self .ldproject .exp_metric ("in-cart-total-price" , False )
283
287
]
284
288
res = self .ldproject .create_experiment (
285
- "grow-engagement-with -promotion-banner" ,
286
- "Grow engagement with promotion banner " ,
289
+ "new-collection -promotion-banner" ,
290
+ "(Bayesian) Funnel Experiment: New Collection Promotion Banner " ,
287
291
"production" ,
288
292
"storeAttentionCallout" ,
289
293
"If we adjust the header text to better copy we can drive greater attention into the stores in question, and greater conversion of checkout activities." ,
@@ -302,9 +306,9 @@ def run_ecommerce_upsell_component_feature_experiment(self):
302
306
"production" ,
303
307
"Turn on flag for experiment" ,
304
308
)
305
- print (" - 10 - Feature Experiment: Suggested Items Carousel" )
309
+ print (" - 10 - (Bayesian) Feature Experiment: Suggested Items Carousel" )
306
310
self .create_ecommerce_upsell_component_feature_experiment ()
307
- self .ldproject .start_exp_iteration ("upsell-tracking-experiment " , "production" )
311
+ self .ldproject .start_exp_iteration ("suggested-items-carousel " , "production" )
308
312
print ("Done" )
309
313
self .experiment_created = True
310
314
@@ -314,43 +318,43 @@ def create_ecommerce_upsell_component_feature_experiment(self):
314
318
self .ldproject .exp_metric ("in-cart-total-price" , False )
315
319
]
316
320
res = self .ldproject .create_experiment (
317
- "upsell-tracking-experiment " ,
318
- "Upsell Tracking Experiment" ,
321
+ "suggested-items-carousel " ,
322
+ "(Bayesian) Feature Experiment: Suggested Items Carousel " ,
319
323
"production" ,
320
324
"cartSuggestedItems" ,
321
325
"If we enable the new cart suggested items feature, we can drive greater upsell conversion." ,
322
326
metrics = metrics ,
323
327
primary_key = "upsell-tracking" ,
324
328
)
325
-
329
+ #####
326
330
def run_ecommerce_shorten_collection_funnel_experiment (self ):
327
331
if not self .metric_groups_created :
328
332
print ("Error: Metric groups not created" )
329
333
return
330
334
print ("Creating experiment: " )
331
335
self .ldproject .toggle_flag (
332
- "storeAttentionCallout " ,
336
+ "release-new-shorten-collections-page " ,
333
337
"on" ,
334
338
"production" ,
335
339
"Turn on flag for experiment" ,
336
340
)
337
- print (" - 09 - Funnel Experiment: Promotion Banner " )
341
+ print (" - 11 - (Frequentist) Funnel Experiment: New Shorten Collection Pages " )
338
342
self .create_ecommerce_shorten_collection_funnel_experiment ()
339
- self .ldproject .start_exp_iteration ("grow-engagement-with-promotion-banner " , "production" )
343
+ self .ldproject .start_exp_iteration ("new-shorten-collection-pages " , "production" )
340
344
print ("Done" )
341
345
self .experiment_created = True
342
-
346
+
343
347
def create_ecommerce_shorten_collection_funnel_experiment (self ):
344
348
metrics = [
345
- self .ldproject .exp_metric ("store-purchases " , True ),
349
+ self .ldproject .exp_metric ("shorten-collection-page-increase-conversation-metric-group " , True ), #TODO: need to get metric key for metric group for shorten collection
346
350
self .ldproject .exp_metric ("in-cart-total-price" , False )
347
351
]
348
352
res = self .ldproject .create_experiment (
349
- "grow-engagement-with-promotion-banner " ,
350
- "Grow engagement with promotion banner " ,
353
+ "new-shorten-collection-pages " ,
354
+ "(Frequentist) Funnel Experiment: New Shorten Collection Pages " ,
351
355
"production" ,
352
- "storeAttentionCallout " ,
353
- "If we adjust the header text to better copy we can drive greater attention into the stores in question, and greater conversion of checkout activities ." ,
356
+ "release-new-shorten-collections-page " ,
357
+ "We would want to reduce the collection page to the top three items to reduce customer decision fatigue in order to increase checkout and overall revenue ." ,
354
358
metrics = metrics ,
355
359
primary_key = "store-purchases" ,
356
360
)
@@ -361,30 +365,30 @@ def run_ecommerce_new_search_engine_feature_experiment(self):
361
365
return
362
366
print ("Creating experiment: " )
363
367
self .ldproject .toggle_flag (
364
- "cartSuggestedItems " ,
368
+ "release-new-search-engine " ,
365
369
"on" ,
366
370
"production" ,
367
371
"Turn on flag for experiment" ,
368
372
)
369
- print (" - 10 - Feature Experiment: Suggested Items Carousel " )
373
+ print (" - 12 - (Frequentist) Feature Experiment: New Search Engine " )
370
374
self .create_ecommerce_new_search_engine_feature_experiment ()
371
- self .ldproject .start_exp_iteration ("upsell-tracking-experiment " , "production" )
375
+ self .ldproject .start_exp_iteration ("new-search-engine " , "production" )
372
376
print ("Done" )
373
377
self .experiment_created = True
374
378
375
379
def create_ecommerce_new_search_engine_feature_experiment (self ):
376
380
metrics = [
377
- self .ldproject .exp_metric ("upsell-tracking " , False ),
381
+ self .ldproject .exp_metric ("search-engine-add-to-cart " , False ),
378
382
self .ldproject .exp_metric ("in-cart-total-price" , False )
379
383
]
380
384
res = self .ldproject .create_experiment (
381
- "upsell-tracking-experiment " ,
382
- "Upsell Tracking Experiment" ,
385
+ "new-search-engine " ,
386
+ "(Frequentist) Feature Experiment: New Search Engine " ,
383
387
"production" ,
384
- "cartSuggestedItems " ,
385
- "If we enable the new cart suggested items feature, we can drive greater upsell conversion ." ,
388
+ "release-new-search-engine " ,
389
+ "We want to a new search engine that is more ranks search results diffrently and have an Add To Cart button built inside the component in order to increase ease of adding items to cart and increasing revenue ." ,
386
390
metrics = metrics ,
387
- primary_key = "upsell-tracking " ,
391
+ primary_key = "search-engine-add-to-cart " ,
388
392
)
389
393
390
394
def run_togglebank_ai_config_experiment (self ):
@@ -417,7 +421,41 @@ def create_togglebank_ai_config_experiment(self):
417
421
metrics = metrics ,
418
422
primary_key = "ai-chatbot-positive-feedback" ,
419
423
)
420
-
424
+
425
+ ############################################################################################################
426
+
427
+ ##################################################
428
+ # Holdout Definitions
429
+ # ----------------
430
+ # Each holdout is defined in its own function below
431
+
432
+ ##################################################
433
+ # Create all the experiment holdouts
434
+
435
+ # def create_and_run_experiments(self):
436
+ # self.run_ecommerce_collection_banner_funnel_experiment()
437
+ # self.run_ecommerce_upsell_component_feature_experiment()
438
+ # self.run_ecommerce_shorten_collection_funnel_experiment()
439
+ # self.run_ecommerce_new_search_engine_feature_experiment()
440
+ # self.run_togglebank_ai_config_experiment()
441
+
442
+ ############################################################################################################
443
+
444
+ ##################################################
445
+ # Layers Definitions
446
+ # ----------------
447
+ # Each layer is defined in its own function below
448
+
449
+ ##################################################
450
+ # Create all the experiment layers
451
+
452
+ # def create_and_run_experiments(self):
453
+ # self.run_ecommerce_collection_banner_funnel_experiment()
454
+ # self.run_ecommerce_upsell_component_feature_experiment()
455
+ # self.run_ecommerce_shorten_collection_funnel_experiment()
456
+ # self.run_ecommerce_new_search_engine_feature_experiment()
457
+ # self.run_togglebank_ai_config_experiment()
458
+
421
459
# ############################################################################################################
422
460
423
461
# Add user id to flags
@@ -1115,11 +1153,11 @@ def flag_exp_promotion_banner(self):
1115
1153
res = self .ldproject .create_flag (
1116
1154
"storeAttentionCallout" ,
1117
1155
"D1 - Funnel Experiment: Promotion Banner" ,
1118
- "Promotion Banner for the Galaxy Marketplace" ,
1156
+ "Releasing New Collection Promotion Banner for the Galaxy Marketplace" ,
1119
1157
[
1120
1158
{
1121
1159
"value" : "New Items" ,
1122
- "name" : "Control"
1160
+ "name" : "( Control) New Items "
1123
1161
},
1124
1162
{
1125
1163
"value" : "Sale" ,
@@ -1139,22 +1177,63 @@ def flag_exp_suggestions_carousel(self):
1139
1177
res = self .ldproject .create_flag (
1140
1178
"cartSuggestedItems" ,
1141
1179
"D2 - Feature Experiment: Suggested Items Carousel" ,
1142
- "Suggested Items Carousel for the cart component in Galaxy Marketplace" ,
1180
+ "Releasing New Suggested Items Carousel Component for the cart component in Galaxy Marketplace" ,
1181
+ [
1182
+ {
1183
+ "value" : True ,
1184
+ "name" : "New Suggested Items Carousel"
1185
+ },
1186
+ {
1187
+ "value" : False ,
1188
+ "name" : "Old Continue Shopping Button"
1189
+ }
1190
+ ],
1191
+ tags = ["experiment" , "ecommerce" ],
1192
+ on_variation = 0 ,
1193
+ off_variation = 1 ,
1194
+ )
1195
+
1196
+ def flag_exp_shorten_collections_page (self ):
1197
+ res = self .ldproject .create_flag (
1198
+ "release-new-shorten-collections-page" ,
1199
+ "D4 - Funnel Experiment: New Shorten Collection Pages" ,
1200
+ "Release New Shorten Collections Page in Galaxy Marketplace" ,
1143
1201
[
1144
1202
{
1145
1203
"value" : True ,
1146
- "name" : "Suggested Items Carousel "
1204
+ "name" : "New Shorten Collections Page "
1147
1205
},
1148
1206
{
1149
1207
"value" : False ,
1150
- "name" : "Continue Shopping Button"
1208
+ "name" : "Old Longer Collections Page"
1209
+ }
1210
+ ],
1211
+ tags = ["experiment" , "ecommerce" ],
1212
+ on_variation = 0 ,
1213
+ off_variation = 1 ,
1214
+ )
1215
+
1216
+ def flag_exp_new_search_engine (self ):
1217
+ res = self .ldproject .create_flag (
1218
+ "release-new-search-engine" ,
1219
+ "D3 - Feature Experiment: New Search Engine" ,
1220
+ "Release New Search Engine in Galaxy Marketplace" ,
1221
+ [
1222
+ {
1223
+ "value" : "old-search-engine" ,
1224
+ "name" : "Old Search Engine"
1225
+ },
1226
+ {
1227
+ "value" : "new-search-engine" ,
1228
+ "name" : "New Search Engine"
1151
1229
}
1152
1230
],
1153
1231
tags = ["experiment" , "ecommerce" ],
1154
1232
on_variation = 0 ,
1155
1233
off_variation = 1 ,
1156
1234
)
1157
1235
1236
+
1158
1237
############################################################################################################
1159
1238
############################################################################################################
1160
1239
0 commit comments