AbdFatah / analytics-issues

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

how to get tablet visitors analytics by using analytics java api? #323

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

      def mon=new SimpleDateFormat("yyyy-MM-dd")
        query.setStartDate(mon.format(startDate));
        query.setEndDate(mon.format(endDate));
        query.setMetrics("ga:visitors");
        query.setDimensions("ga:isMobile,ga:isTablet");

      //  query.setSegment("gaid::-13");
        query.setSegment("dynamic::ga:isTablet==Yes");
i tried both the ways but i am not getting any result. i am using google 
analytics api version 2.1. If i use as below for mobile i am getting results 
what i want.

   query.setSegment("gaid::-11");
   query.setSegment("dynamic::ga:isMobile==Yes");

where i am doing wrong for tablet analytics? any suggestions friends ?

Original issue reported on code.google.com by gr.gr...@gmail.com on 14 Aug 2013 at 4:12

GoogleCodeExporter commented 9 years ago
This is not a defect. Use the community forums for questions on how to use the 
API.
https://developers.google.com/analytics/community/

Original comment by pfrise...@google.com on 13 Apr 2014 at 8:14