Get mobile device info Analytics API

1,858 views
Skip to first unread message

Gdev

unread,
Aug 6, 2011, 7:11:38 AM8/6/11
to google-analytics-api - GA Data Export API
Hello,
In the new version of Google analytics there is section
named as mobile and they are showing visits by specific mobile device.
I am trying to fetch these value using Google analytics API using
dimensions & metrics but I am unable to get specific mobile device
using API. How can I get it? Please help me. Thanks in advance.

mschenkel

unread,
Aug 10, 2011, 4:12:37 PM8/10/11
to google-analytics-api - GA Data Export API

Gdev

unread,
Aug 11, 2011, 5:02:33 AM8/11/11
to google-analytics-api - GA Data Export API

Hi,
Thanks for the reply. It returns operating system name
instead of device name, I need to retrieve device name e.g. Blackberry
9700 as available in devices link in analytics.
Is it possible to get mobile device name?

On Aug 11, 1:12 am, mschenkel <markschen...@yahoo.com> wrote:
> You want your dimension to be "Operating System" and also filter for
> the "Mobile Traffic" Segment.  Example:https://www.google.com/analytics/feeds/data?ids=ga%3A99999999&dimensi...

mschenkel

unread,
Aug 11, 2011, 5:21:06 PM8/11/11
to google-analytics-api - GA Data Export API
sorry - I can't even find specific device name within Google
Analytics. When I drill down I only get these options:
Browser, Operating System, Screen Colors, Screen Resolution, Flash
Version, Java Support

Operating system does differentiate between iPhone, Droid, etc.

Is there a chance someone created a custom variable/dimension?

Gdev

unread,
Aug 16, 2011, 1:04:51 PM8/16/11
to google-analytics-api - GA Data Export API
@mschenkel, Please let me know if you get any solution for this.
Thanks.

Gdev

unread,
Aug 16, 2011, 1:02:38 PM8/16/11
to google-analytics-api - GA Data Export API
@mschenkel , I am also finding the way to retrieve this value. Please
let me know if you find any solution. Thanks.

On Aug 12, 2:21 am, mschenkel <markschen...@yahoo.com> wrote:

Simon Bennett

unread,
Aug 18, 2011, 9:21:01 AM8/18/11
to google-analytics-api - GA Data Export API
@Gdev I have found the following solution to your problem. You
basically need to include the following within your query:

ga:dimensions => ga:operatingSystem,ga:operatingSystemVersion
ga:metrics => ga:visits
ga:filters => ga:isMobile==Yes

That will then return all the OS and version for all mobile devices
basically mirroring the report.

Gdev

unread,
Aug 19, 2011, 2:56:36 AM8/19/11
to google-analytics-api - GA Data Export API
@simon Thanks for the reply but if you will see in the new google
analytics there will be a section of devices inside mobile category
which shows all the mobile devices name, not the operating system. So
which dimension / metrics will be used to get this?

Simon Bennett

unread,
Aug 19, 2011, 5:30:28 AM8/19/11
to google-analytics-api - GA Data Export API
Agree that within the analytics panel it does bring back the device
name and I've found using the ga:operatingSystem metric brings back
the device name. If you plug all of that into the query explorer at
http://code.google.com/apis/analytics/docs/gdata/gdataExplorer.html
you'll see it brings back the device name as far as iPhone, iPad,
Blackberry and Android. Don't think you'll be able to drill down to
model specifics such as Android HTC Desire etc.

Jeetendra S.

unread,
Aug 20, 2011, 7:20:34 PM8/20/11
to google-analytics...@googlegroups.com
Hi,

Yes, the API currently does not expose the mobile device model names. We will look into adding these dimensions to the API in the near future. Meanwhile, could you please create a feature request under the API issue tracker at http://code.google.com/p/analytics-issues/issues/list ?

Thanks,
Jeetendra.

Reply all
Reply to author
Forward
0 new messages