firebase-analytics icon indicating copy to clipboard operation
firebase-analytics copied to clipboard

logEvent does not support array params

Open nhh opened this issue 3 years ago • 2 comments

Describe the bug The documentation states that we can use array params, firebase throws an error indicating we cant.

To Reproduce Steps to reproduce the behavior:

  1. Use logEvent with params:
await FirebaseAnalytics.logEvent({
  name: "testEvent",
  params: {
    products: ["array", "array2"]
  }
})

Expected behavior Array params should be visible in firebase

Screenshots

Bildschirmfoto 2022-04-22 um 13 39 52

Bildschirmfoto 2022-04-22 um 13 41 05

Smartphone (please complete the following information):

  • Device: iphone 12 mini
  • OS: 15.4
  • Browser: safari
  • Version ?

nhh avatar Apr 22 '22 11:04 nhh

EDIT: It seems that only certain events like purchase support array params.

These will be listed as the following:

Bildschirmfoto 2022-04-22 um 14 19 43

nhh avatar Apr 22 '22 12:04 nhh

Hi Team, facing the same issue, any updates on this?

mukul-myhq avatar Nov 22 '22 21:11 mukul-myhq