andeedee / gapi-google-analytics-php-interface

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

I have corrected this #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Line: 235
 $filter = preg_replace('/(&&\s*|\|\|\s*|^)([a-z]+)(\s*' . $valid_operators . ')/i','$1ga:$2$3',$filter); //Prefix ga: to metrics and dimensions

Changed to: 
 $filter = preg_replace('/(&&\s*|\|\|\s*|^)([a-z0-9]+)(\s*' . $valid_operators . ')/i','$1ga:$2$3',$filter); //Prefix ga: to metrics and dimensions

To work with metrics filters like "ga:goal2Completions>0 "

Original issue reported on code.google.com by lvi...@gmail.com on 17 Jun 2013 at 11:54