Analytics API- Get MCF data = Blank Results

牧云@^-^@ 提交于 2019-12-24 16:27:37

问题


I am trying to retrieve MCF data from an analytics account. So far I am able to get GA Data successfully, but when I try MCF I get blank data.

Am I reading the data correctly, or is MCF data in a different format?

$results= $analytics->data_mcf->get('ga:'.$profileId,'yesterday','today','mcf:assistedConversions');

if (count($results->getRows()) > 0) {
    $rows = $results->getRows();
    $sessions = $rows[0][0];

   printf(" Analytics Name: $PropertyName  AnalyticsID:$PropertyId \n");
   printf(" ->Sessions: $sessions\n");   

来源:https://stackoverflow.com/questions/35904707/analytics-api-get-mcf-data-blank-results

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!