Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Real time visitors from Google Analytics. How to get it?

Is there any way using gapi (preferable) to retrieve the real time visitors from Google Analytics?

I tried to pass a date range like:

begin: 2012-12-12 09:49:04 end: 2012-12-12 09:49:05

but it didn't work.

I did a research and couldn't find a solution yet.

Someone can help me?

like image 953
GarouDan Avatar asked Dec 27 '22 13:12

GarouDan


2 Answers

Google has now launched a real time API. It is only in beta however you can sign up and should be available to everyone later.

http://analytics.blogspot.co.uk/2013/08/google-analytics-launches-real-time-api.html

like image 79
John Avatar answered Jan 12 '23 23:01

John


Access to the real-time data is not yet available through the api. See the following:

Access to Real Time data

Scraping Real Time Visitors from Google Analytics

The only way to get it currently is to look at it in the Google Analytics web interface: https://www.google.com/analytics/web/

like image 27
jk. Avatar answered Jan 13 '23 01:01

jk.