If set $dimensions to null or empty array at requestReportData method
result is error.
To correct this problem:
if ($dimensions) {
if(is_array($dimensions))
{
$dimensions_string = '';
foreach($dimensions as $dimesion)
{
$dimensions_string .= ',ga:' . $dimesion;
}
$parameters['dimensions'] = substr($dimensions_string,1);
}
else
{
$parameters['dimensions'] = 'ga:'.$dimensions;
}
}
Original issue reported on code.google.com by von.hamster on 10 Sep 2009 at 10:38
Original issue reported on code.google.com by
von.hamster
on 10 Sep 2009 at 10:38