Hi all
In order for us to optimize the sort of our search results, we are currently working on building an Analytics API request containing a segment, filters, a dimension and several metrics. Although we have access to the API documentation, it seems to lack information necessary for our objective.
Unfortunately the API Docu doesn't seem to explain how to filter by a dimension item. It is crucial that we filter by dimension item and not by segment as there is a difference in data precision between filtering by dimension item and by hit segment.
Following please find the current API request. I would be very grateful for your feedback in a timely manner.
Best
Alex
-------------------------------------------------------------
{
"rsid": "dtodertourprod",
"globalFilters":[
{
"type":"dateRange",
"dateRange":"2018-05-09T00:00:00.000/2018-11-08T23:59:59.999"
},
{
"type":"segment",
"segmentId":"5be18f258907f823ceb10700"
}
],
"metricContainer":{
"metrics":[
{
"columnId":"0",
"id":"metrics/productinstances"
},
{
"columnId":"1",
"id":"metrics/orders"
},
{
"columnId":"2",
"id":"metrics/revenue"
}
]
},
"dimension":"variables/product",
"settings": {
"limit": "50"
}
}
-------------------------------------------------------------