Working with API to manipulate data about conversion , I get the total number of conversions per goal if I explicitly set the metric's API query parameter, as follows:
$metrics = 'ga:goal1Completions,ga:goal2Completions,ga:goal3Completions',
[
'dimensions' => 'ga:date',
'output' => 'dataTable'
]
The problem with doing this is that I do not know how many goals are registered for each client, this varies between 1 and 20. It is not possible to list from 1 to 20, and if I return 0
I treat the line, which is the case of goal 3 in the example, which does not exist.