|
|
|
@ -71,13 +71,10 @@ class Gaapi extends CI_Controller
|
|
|
|
|
//Create the dimensions
|
|
|
|
|
$pageUrl = new Google_Service_AnalyticsReporting_Dimension();
|
|
|
|
|
$pageUrl->setName("ga:pagePath");
|
|
|
|
|
$pageUrl->setAlias("path");
|
|
|
|
|
$cid = new Google_Service_AnalyticsReporting_Dimension();
|
|
|
|
|
$cid->setName("ga:dimension1");
|
|
|
|
|
$cid->setAlias("cid");
|
|
|
|
|
$hitTime = new Google_Service_AnalyticsReporting_Dimension();
|
|
|
|
|
$hitTime->setName("ga:dimension3");
|
|
|
|
|
$hitTime->setAlias("hitTime");
|
|
|
|
|
|
|
|
|
|
// Create the ReportRequest object.
|
|
|
|
|
$request = new Google_Service_AnalyticsReporting_ReportRequest();
|
|
|
|
|