Skip to main content
Question

Empty subprop value on a filter using the Event Segmentation endpoint

  • October 11, 2024
  • 0 replies
  • 67 views

Hi, I’m currently trying to integrate Amplitude’s API with an app on Bubble.io to get interactive dashboards which do not exist on Amplitude (only the events data is on Amplitude). However, I’m blocked because of some filters I should add that could have empty values in Bubble and should be ignored in the call. Is there any way to assign the subprop value within the call for the filter to take any subprop value?
 

This is what my API call currently looks like:

https://amplitude.com/api/2/events/segmentation?e={"event_type":"[event_type]","filters": %5B{ "subprop_type":"event", "subprop_key":"microsite","subprop_op":"is","subprop_value":%5B"[microsite]"%5D}%5D}&start=[start_YYYYMMDD]&end=[end_YYYYMMDD]

 

Please note that the dynamic values are included between brackets (due to Bubble’s syntax), while the brackets from the object syntax are URL-encoded as %5B and %5D for [ and ] respectively.

 

The value which might be empty is the one for the “microsite” subprop.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings