Expand my Community achievements bar.

In Metric API, filter on segmentable field with “false” value gives result for both true and false value.

Avatar

Level 2

When we are applying filter on Metric API (https://adobedocs.github.io/analytics-2.0-apis/#/Metrics/getMetrics) for "segmentable" field with “false” value, it is giving records having both true and false value. The filter is not working properly.

 

When we apply true value:

AmeyGa_0-1727266609901.png

 

When we apply false value:

AmeyGa_1-1727266664487.png

 

Could you please share details regarding why it is working like this.

1 Reply

Avatar

Level 4

It may seem counter intuitive, but this is how the Github page actually also shows it in the responses, which I found odd. After looking at this for a bit, this is my hypothesis: When you set "segmentable" filter on, it will only return items that match that. When it filter is left as default or set to false (which is the same), it will not filter at all instead of doing what you expect.

This to me looks the way it works, and if so, it a bit misleading.