问题
Google Analytics' new version has Real Time (beta), and it is able to show the number of active visitors on site.
I am wondering how to display this number on my website.
回答1:
Right now you can't do that through the Google Analytics API but there is a feature request in for it.
Issue 154: Access to Real Time data
Update: Google has added a real time api: https://developers.google.com/analytics/devguides/reporting/realtime/v3/
Announcement
Update2: "The Google Analytics superProxy allows you to publicly share your Google Analytics reporting data."
来源:https://stackoverflow.com/questions/9245690/how-to-display-google-analytics-active-visitors-on-site-number-on-my-website