Skip to content

Conversation

mmustafa-tse
Copy link
Contributor

Summary

  • Firebase/GA4 have item index as part of the item parameters for eCommerce events (docs here) and a customer requested our kits to support this parameter since we already have product positions that can be mapped to

Testing Plan

  • Was this tested locally? If not, explain why.
  • E2E and unit tested

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@@ -536,6 +536,10 @@ - (NSMutableArray *)getParametersForProducts:(id)products {
if (product.price) {
[productParameters setObject:product.price forKey:kFIRParameterPrice];
}
if (product.position) {
id indexParameter = @(product.position);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason you defined this as id instead of NSNumber * ?

Copy link
Contributor Author

@mmustafa-tse mmustafa-tse Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BrandonStalnaker - it was throwing an error that I think it needs to be an id in order to pass
Screenshot 2025-04-10 at 6 22 56 AM

Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one little question

Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@BrandonStalnaker BrandonStalnaker merged commit b3bdfb5 into mparticle-integrations:development Apr 10, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants