artemklevtsov / RGA

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

get_ga with multiple filters #64

Open AlexSiormpas opened 4 years ago

AlexSiormpas commented 4 years ago

I want to get data for 2 experiments that have

     - ga:ExperimentID==Id_of_Experiment_1
     - ga:ExperimentID==Id_of_Experiment_2

So far I've managed to input the 1 but I'm struggling to find a solution to add Id_of_Experiment_2 that will work like an OR not AND logic in the filter. Is there any way to make this?

Data <- get_ga(ga_api_id,
                         start.date = experiment_start_date,
                         end.date   = Sys.Date(),
                         fetch.by="day",
                         dimensions = "ga:experimentVariant",
                         metrics = "ga:transactionRevenue",
                         filter = "ga:ExperimentID==Id_of_Experiment_1")