|
|
|
|
@ -68,6 +68,7 @@ class Gaapi extends CI_Controller
|
|
|
|
|
$pv->setExpression("ga:pageviews");
|
|
|
|
|
$pv->setAlias("pageviews");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Create the dimensions
|
|
|
|
|
$pageUrl = new Google_Service_AnalyticsReporting_Dimension();
|
|
|
|
|
$pageUrl->setName("ga:pagePath");
|
|
|
|
|
@ -76,6 +77,7 @@ class Gaapi extends CI_Controller
|
|
|
|
|
$hitTime = new Google_Service_AnalyticsReporting_Dimension();
|
|
|
|
|
$hitTime->setName("ga:dimension3");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Create the ReportRequest object.
|
|
|
|
|
$request = new Google_Service_AnalyticsReporting_ReportRequest();
|
|
|
|
|
$request->setViewId($VIEW_ID);
|
|
|
|
|
|