Skip to content

Commit

Permalink
adding product brand to ecommerce event products
Browse files Browse the repository at this point in the history
  • Loading branch information
v-mamaya committed Jun 6, 2024
1 parent 6130fda commit 1c10082
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ - (NSString *)getEventNameForCommerceEvent:(MPCommerceEvent *)commerceEvent para
if (product.category) {
[productParameters setObject:product.category forKey:kFIRParameterItemCategory];
}
if (product.brand) {
[productParameters setObject:product.brand forKey:kFIRParameterItemBrand];
}
if (product.price) {
[productParameters setObject:product.price forKey:kFIRParameterPrice];
}
Expand Down Expand Up @@ -565,6 +568,9 @@ - (NSString *)getEventNameForCommerceEvent:(MPCommerceEvent *)commerceEvent para
if (product.category) {
[productParameters setObject:product.category forKey:kFIRParameterItemCategory];
}
if (product.brand) {
[productParameters setObject:product.brand forKey:kFIRParameterItemBrand];
}
if (product.price) {
[productParameters setObject:product.price forKey:kFIRParameterPrice];
}
Expand Down

0 comments on commit 1c10082

Please sign in to comment.