Google analytics API PHP Get data tablet/phone/deskop -


i have attached api , able acquire data type. returning visitor new visitor etc .. can not pull data on device, whether on mobile, tablet.

i'm confused how write expoler not find it.

    public function getresultsgraph1() {     return $this->analytics->data_ga->get(                     'ga:' . $this->accounts, $this->startdate, $this->enddate, 'ga:sessions', array(                 'metrics' => 'ga:sessions,ga:bouncerate')); } 

any advice on how it?

you need add dimension ga:devicecategory return desktop, tablet, or mobile.

 $optparams = array(       'dimensions' => 'ga:devicecategory');    return $service->data_ga->get(       table_id,       '2010-01-01',       '2010-01-15',       'ga:sessions',       $optparams); 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -