如何在gapi.class.php中使用过滤器?

时间:2016-07-26 03:40:37

标签: php api google-analytics

我正在使用gapi.class.php从google analytics api获取数据 这是我的示例代码

$filter = 'eventValue =~ 493';

$ga->requestReportData('00000000',array('eventLabel'),array('totalEvents','uniqueEvents','eventValue','avgEventValue','eventsPerSessionWithEvent'), 'totalEvents', $filter ,date("Y-m-d"), date("Y-m-d"));

我想过滤前缀为“客户收到的代码:”和后缀“493”

的字符串

示例数据:

Customer received code : 1493
Customer received code : 4933
Customer received code : 1234
Customer received code : 2334
Customer sent code : 555
Customer received code : 493
Customer sent code : 777

如果您能提供任何解决方案,我将不胜感激。

谢谢,

0 个答案:

没有答案