Skip to main content
values are sent as a list

 

Hi! I’m passing a list of values for an event property. Is there a “correct” way to parse these strings and analyze them individually rather than as a list?

 

For example e“backpacking”, “camping”] => two entries, one for backpacking & one for camping.

 

Thanks,

 

Matt

Hey @matt 

Afaik, properties sent as array lists can be analyzed in two ways

  • as an individual value belonging to the array
  • as a set

If you use contains/is, then Amplitude looks for the substring/exact match in the array and matches it.

So contains/is “camping” will match events with both b“backpacking”, “camping”] and p“camping”] as event properties. Here’s a demo chart.

If you want to evaluate the array as a set, then the set operators helps. You can read more here on how they work.

Let me know if I have interpreted your use case correctly.

 

 


Reply