Unique Visitors and visitCount

941 views
Skip to first unread message

Ketan Dangi

unread,
Aug 27, 2012, 3:37:21 AM8/27/12
to google-analytics...@googlegroups.com
Hello Experts,

I am using open source tool to get the data from Google Analytic through API and I am not getting the count of ga:visitors same as count of unique visitors in UI. I searched many things but nothing helped. Can anybody tell me how to get the unique visitors value through API? My requirement is to download google analytic data to my local database. Tool which I am using is not using GA 3.0 API version it is using older version.


Can we use following way to get the unique visitors?
- If we select ga:date and ga:visitCount dimension  and ga:visitors metric and load its result to the table and then if we take sum of all visitors where we get visitcount =1 for a month then shouldn't be equal to months unique visitors value?

thanks 
ketan


TANU KANSAL

unread,
Aug 27, 2012, 4:09:22 AM8/27/12
to google-analytics...@googlegroups.com
yes, your are doing it in a correct way. you have to select dimensions as ga:visitCount and metrics as ga:visitors and you can set a filter as ga:visitCount==1. This will give you number of unique visitors in a selected time range. And if you want it on daily basis then you can select another dimension ga:date or ga:day which will break this data on daily basis or if you want monthly then ga:month etc as per your requirement.

Thanks,
-Nitish Kansal

Ketan Dangi

unread,
Aug 27, 2012, 5:01:34 AM8/27/12
to google-analytics...@googlegroups.com
Thanks for you reply. But in this case calculate unique visitors are not the same which comes in UI?

TANU KANSAL

unread,
Aug 27, 2012, 5:48:42 AM8/27/12
to google-analytics...@googlegroups.com
how much difference you are getting and are you sure you are selecting same time range in both UI as well as google query explorer? because there shouldnt be any difference

--
 
 

Nick

unread,
Aug 27, 2012, 12:53:19 PM8/27/12
to google-analytics...@googlegroups.com
Hi,

You should try this sam query by building a custom dashboard and you'll see the results will match the UI.

There are 2 visitor calculations in GA and they depend on the dimensions you are selecting: If you only use date dimensions vs If you use any other dimension.

You can search the forum to understand the difference between both calculations.
-Nick
Reply all
Reply to author
Forward
0 new messages