TulioBento / gapi-google-analytics-php-interface

Automatically exported from code.google.com/p/gapi-google-analytics-php-interface
0 stars 0 forks source link

How to use custom var in filter? #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Following are code:

$dimensions = array('pagePath', 'customVarValue1');
$metrics    = array('pageviews',  'uniquePageviews', 'bounces', 'exits');
$filter     = 'pagePath =@ ' . $filter_text . ';customVarValue1=' . 
$this->memberid;

here I need to filter the result with customVarValue1, but I'm not getting any 
result... I have tried with other date range also..

If I'm changing the filter to: 
$filter     = 'pagePath =@ ' . $filter_text

its working properly..

Pls help me...

Original issue reported on code.google.com by contactv...@gmail.com on 26 Jul 2011 at 11:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Filter Example here: 
http://code.google.com/p/gapi-google-analytics-php-interface/
I used filter like 'ga:customVarValue2=~[my value]' and it's work

Original comment by ovbelyak...@gmail.com on 30 Jan 2012 at 11:11

GoogleCodeExporter commented 9 years ago
You need to write: 
$filter = 'ga:pagePath=@'.$filter_text.';ga:customVarValue1=='.$this->memberid;

Original comment by ovbelyak...@gmail.com on 30 Jan 2012 at 2:19