问题
I would like to access User Explorer data using Google analytics API to get the report as JSON value. Using this JSON value I can create my web application dashboard for analytics. I couldn't found any metrics and dimensions to get User Explorer details in this link
Please share if any related documents or any links to access User Explorer data using Google analytics API
回答1:
You cannot access the user explorer report via the API. Google has decided not to make this data available.
You might roll your own solution. For that you need two custom dimensions.
One is the client id, and you can see how to get this in this incomplete answer to the same question.
It is incomplete because it does not allow you to break down a visit by sessions. So you need a session id as custom dimension. Storing a session id is actually rather simple - send a random number to a session scoped custom dimension, so each session will, by definition, contain only the last value you send along.
Now you can download clientId and sessionID plus your relevant metrics, and break down the clientID data in some external software by sessionID.
This won't help you with data that has already been collected, and even on a moderately large site you will probably run into API limits pretty quickly, but with a free GA account it is the only way I can think of. With a GA 360 account you can use BigQuery to recreate the User Explorer report.
来源:https://stackoverflow.com/questions/44567957/how-to-access-user-explorer-data-in-google-analytics-using-google-analytics-api