Skip to content

Commit

Permalink
feat: Add product brand to commerce event products (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-mamaya authored and einsteinx2 committed Jun 12, 2024
1 parent 6130fda commit 245e42f
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 245e42f

Please sign in to comment.