Commit 87710aed49086a46ee55e04443c158836ff38974
1 parent
dc60f1c5
dimensions +dynamics +multiple
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
app/library/App/Controllers/GaController.php
| @@ -61,8 +61,9 @@ class GaController extends CrudResourceController { | @@ -61,8 +61,9 @@ class GaController extends CrudResourceController { | ||
| 61 | // $dimension[] = $dimension_obj; | 61 | // $dimension[] = $dimension_obj; |
| 62 | // } | 62 | // } |
| 63 | //Create the Dimensions object. | 63 | //Create the Dimensions object. |
| 64 | - $dimension = new Google_Service_AnalyticsReporting_Dimension(); | ||
| 65 | - $dimension->setName("ga:".$get_dimensions); | 64 | + $dimension_obj = new Google_Service_AnalyticsReporting_Dimension(); |
| 65 | + $dimension_obj->setName("ga:".$get_dimensions); | ||
| 66 | + $dimension[] = $dimension_obj; | ||
| 66 | 67 | ||
| 67 | 68 | ||
| 68 | // Создание объекта ReportRequest. | 69 | // Создание объекта ReportRequest. |