Requesting multiple Goals through API.getBulkRequest


#1

There seems to be an issue when requesting info about multiple goals (ecommerce) when using a bulk request.
Making a request for 1 goal works perfectly fine, but when requesting multiple, I only get results for one of them.

Goals.get&idGoal=ecommerceOrder


"Goals.get&idGoal=ecommerceOrder": {
	"nb_conversions": 45,
	"nb_visits_converted": 34,
	"revenue": 28093.39,
	"revenue_subtotal": 12085.17,
	"revenue_tax": 2775.95,
	"revenue_shipping": 766.22,
	"revenue_discount": 1372,
	"items": 123,
	"avg_order_revenue": 624.3,
	"conversion_rate": "5.33%"
}

Goals.get&idGoal=ecommerceAbandonedCart


"Goals.get&idGoal=ecommerceAbandonedCart": {
	"nb_conversions": 111,
	"nb_visits_converted": 111,
	"revenue": 189999991494000,
	"items": 65986,
	"avg_order_revenue": 1711711635080,
	"conversion_rate": "17.4%"
}

Goals.get&idGoal=ecommerceOrder AND Goals.get&idGoal=ecommerceAbandonedCart


"Goals.get&idGoal=ecommerceAbandonedCart": {
	"nb_conversions": 45,
	"nb_visits_converted": 34,
	"revenue": 28093.39,
	"revenue_subtotal": 12085.17,
	"revenue_tax": 2775.95,
	"revenue_shipping": 766.22,
	"revenue_discount": 1372,
	"items": 123,
	"avg_order_revenue": 624.3,
	"conversion_rate": "5.33%"
},
"Goals.get&idGoal=ecommerceOrder": {
	"nb_conversions": 45,
	"nb_visits_converted": 34,
	"revenue": 28093.39,
	"revenue_subtotal": 12085.17,
	"revenue_tax": 2775.95,
	"revenue_shipping": 766.22,
	"revenue_discount": 1372,
	"items": 123,
	"avg_order_revenue": 624.3,
	"conversion_rate": "5.33%"
}

Also, Goals.getGoals returns


[]

Is this a known issue? I’m always using the bulkRequest API, and never ran into a problem. All the other data is fine, it’s just the Goals.

Is there a workaround (or just a better way) to request data for multiple ecommerce goals other than creating 2 seperate queries?


(Matthieu Aubry) #2

Hi Jeffrey,

This looks like a bug. can you please create a bug report on our issue tracker, with the same text more or less, and the URL you use the reproduce the bulk request? we will investigate


#3

For anyone who comes here with the same question, it’s solved. I forgot to encode my URLS in the BulkRequest :slightly_smiling: