File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 306306 }];
307307 });
308308
309+ it (@" track Promotion Viewed" , ^{
310+ SEGTrackPayload *payload = [[SEGTrackPayload alloc ] initWithEvent: @" Promotion Viewed"
311+ properties: @{
312+ @" product_id" : @" 507f1f77bcf86cd799439011" ,
313+ @" category" : @" Games" ,
314+ @" name" : @" Monopoly 3rd Edition" ,
315+ @" price" : @18.99 ,
316+ @" quantity" : @1 ,
317+ @" currency" : @" usd" ,
318+ }
319+ context: @{}
320+ integrations: @{}];
321+
322+ [integration track: payload];
323+ [verify (mockFirebase) logEventWithName: @" present_offer" parameters: @{
324+ @" item_id" : @" 507f1f77bcf86cd799439011" ,
325+ @" item_category" : @" Games" ,
326+ @" item_name" : @" Monopoly 3rd Edition" ,
327+ @" price" : @18.99 ,
328+ @" quantity" : @1 ,
329+ @" currency" : @" usd" ,
330+ }];
331+ });
332+
309333 it (@" track Payment Info Entered" , ^{
310334 SEGTrackPayload *payload = [[SEGTrackPayload alloc ] initWithEvent: @" Payment Info Entered"
311335 properties: @{
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ - (NSString *)formatFirebaseEventNames:(NSString *)event
7676 kFIREventAddToCart , @" Product Added" ,
7777 kFIREventRemoveFromCart , @" Product Removed" ,
7878 kFIREventBeginCheckout , @" Checkout Started" ,
79+ kFIREventPresentOffer , @" Promotion Viewed" ,
7980 kFIREventAddPaymentInfo , @" Payment Info Entered" ,
8081 kFIREventEcommercePurchase , @" Order Completed" ,
8182 kFIREventPurchaseRefund , @" Order Refunded" ,
You can’t perform that action at this time.
0 commit comments