artemklevtsov / RGA

A Google Analytics API client for R
http://cran.r-project.org/package=RGA
32 stars 13 forks source link

filter #42

Closed alkimozaygen closed 8 years ago

alkimozaygen commented 8 years ago

Hi Artem, Thank you for this useful package. Everything work fine, but when I configure the get_ga filters as follows filters = "ga:pagePath=~/search?identifier=483357" it doesn't return any data. But I checked there is data. For example I can get data when I configure the get_ga function using filters = "ga:pagePath=~/search" and filter afterwards in the data frame for the string "/search?identifier=483357". How can use filters where I can include characters such as '?', '=', etc. Am I doing something wrong? Thank you for your help.

Alkim

alkimozaygen commented 8 years ago

Silly of me, it's because of the escape character. I should have written filters = "ga:pagePath=~/search\?identifier=483357" Now it's working